githubnext/chopinPublic

Let's compose rich plans together

Keep every reference picker row on one line #394

MergedMaggieAppletonmerged 1 commit intomainfromrefs/pull/394/head
  1. MA

    ## Why In Chat, the `#` document picker wrapped long slugs onto 2-3 lines and showed a description line, so rows were 32px to 169px tall.

    ## What changed - Every row is exactly one line (fixed 2rem height, active row included). - The title truncates and takes space priority; the slug (and "in <parent>" hint) is a single truncated line capped at 35% of the row. - The slug is hidden at 40rem and narrower, so titles read on phones. - The description is gone from the row: it is the row's `title` tooltip and a screen-reader-only `aria-describedby` text.

    ## Screenshots

    Before and after, desktop:

    ![Before desktop](https://github.com/user-attachments/assets/c8c3203e-7e1d-4e0f-b265-8dd12a396208) ![After desktop](https://github.com/user-attachments/assets/ef3ba6c0-a6e1-474a-88cb-89f7ef54d11a)

    Before and after, phone:

    ![Before phone](https://github.com/user-attachments/assets/a10023fa-40fb-4e56-95db-7ebd4b7edd03) ![After phone](https://github.com/user-attachments/assets/1f8a00cf-7030-4844-bfc3-d60cbbf73364)

    ## Verification

    - The single UI commit remains patch-identical on the refreshed stack. Focused reference-picker tests: 13 passed, including long title, slug, and description handling. - `bun run fix`, `bun run ci`, `bun run types`, and `bun run build` passed. Initial JavaScript is 251,596 B raw / 79,418 B gzip, 4,404 bytes below the raw limit. - Earlier Chromium measurement found 32px rows after the change, versus up to 169px before. Fresh GitHub CI must run after the prepared head is published.

  2. MaggieAppletonbase-ref-force-pushedlast month on GitHub

  3. MaggieAppletonautomatic-base-change-succeededlast month on GitHub

  4. MaggieAppletonhead-ref-force-pushed eae93fa6bf47last month on GitHub

  5. MaggieAppletonmerged 8fba15c30ca4last month on GitHub

  6. MaggieAppletonclosedlast month on GitHub

  7. MaggieAppletonhead-ref-deletedlast month on GitHub