Skip to content

[Bug]: Project icon picker search field shifts vertically as results change #43045

Done

Description

@edwardsanchez

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web (also affects the macOS desktop app)

Steps to reproduce

  1. Open Project Settings and choose a project icon.
  2. In the Choose project icon dialog, select the Icons tab.
  3. Focus Search all Lucide icons and type a query that reduces the results to a single row (or no results).
  4. Delete the query to restore the original results.
CleanShot 2026-11-25 at 11 54 05 AM

Expected behavior

The focused search field should remain at the same on-screen position while typing and clearing the query. Only the results should change.

Either of these layout fixes would work:

  • Keep the dialog's top edge anchored while its height changes, so the search input stays fixed.
  • Use a fixed, viewport-constrained dialog height, with the results area scrolling as needed.

Actual behavior

The height of the dialog changes as the results grid shrinks or expands. Because the dialog is vertically centered, the entire top portion of the dialog, including the focused search input, moves up or down as the user types.

A focused input moving while it is being edited is visually distracting and makes it harder to maintain a stable point of attention. A screen recording supplied by the reporter demonstrates the behavior.

The likely cause is that ProjectIconPickerDialog.tsx limits the results area with max-h-64 but does not reserve a stable height, while the shared dialog viewport centers its auto-height popup vertically.

A focused browser regression test could compare the search input's bounding rectangle before typing, with many results, with one row, with no results, and after clearing the query. Its vertical position should remain unchanged at a fixed viewport size.

Impact

Minor bug or occasional failure

Version or commit

T3 Code Beta 0.1.11

Environment

macOS desktop app (macOS 27.0.1)

Activity

  1. 2SinceJuly commented on Nov 25, 2026

    @2SinceJuly
    Contributor

    I'm on it — the diagnosis in the report looks right. The results grid inside max-h-64 shrinks with the result count, which moves the vertically centered popup's top edge (and the focused search input) as you type. I'll give the results area a stable height and keep the empty state inside it so the dialog height no longer depends on the query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions