Go to file
Ilya Mukhortov d7f7b3ecdb Open cards: fit tabs to width (max 4) with an "ещё N" menu
PageTabs shows as many card tabs as fit the bar width, at most
MAX_VISIBLE_TABS (4), measured from an invisible copy of the row and
recomputed on resize. The rest go into an "ещё N" dropdown where a
card can be opened or closed; the active card is always visible.
The sidebar uses the same split: all cards when there are up to five,
otherwise four plus "ещё N" with the same menu.

The close button inside menu items stops only click, not pointerdown:
otherwise Radix treats pointerup as an outside press and selects the
item, opening the card instead of closing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:18:40 +10:00
src Open cards: fit tabs to width (max 4) with an "ещё N" menu 2026-10-24 20:18:40 +10:00