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> |
||
|---|---|---|
| src | ||