fix(desktop): keep tabs and controls accessible at high zoom

Merged
KI
8d ago
+84-43

What & why

High zoom pushed tabs and toolbar actions outside the new desktop layout. Remove duplicate zoom sizing, reserve toolbar space, and use layout coordinates for tab scrolling, close sizing, and insertion indicators.

Make the navigation rail scroll, allow the side pane to shrink, and constrain the icon picker and Anywhere popup to available space. The icon grid adapts its columns.

Single panes in the new layout now fit their container while split panes retain their existing minimum size. Narrow composers wrap controls and limit editor height so Send stays reachable. New Tab cards fit the available width and wrap shortcut hints. Normal-width composers retain a single toolbar row.

How I tested it

  • bun run lint and bun run typecheck passed (42 typecheck tasks).
  • 145 pane tests, 7 composer tests, and 3 side-width tests passed.
  • Real Electron checks at 100%, 173%, 299%, 430%, and back to 100%: composer buttons inside pane bounds and pointer-reachable; no horizontal tool-card overflow.
  • Typed and cleared an unsent draft, opened the model menu, scrolled to lower tool cards, opened Files, reopened New Tab, and resized the side pane back and forth. No console errors during resizing.
  • Actual before-and-after screenshots, follow-up fixes, and regression captures.

The New Project dialog still extends above the window at 430%; the icon picker itself fits. This remaining dialog issue is documented on the screenshot page. Other platforms and every pane type were not exhaustively tested.

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass (CI fails on lint warnings too)
  • "Allow edits from maintainers" is checked on fork PRs (same-repository PR)
  • CLA check passed

Summary by CodeRabbit

  • Bug Fixes
    • Improved navigation, popovers, and icon pickers in constrained spaces: overflowing content can scroll, and layouts adjust to available width.
    • Icon grids now adapt their column count to the space available.
    • Workspace side panels can shrink in narrow windows, while title bars and tab bars better accommodate changing widths and overflow.
    • Tool grids, buttons, panes, and the message composer now fit more comfortably in narrow layouts, with content wrapping or resizing as needed.