mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
The app tab strip built every tab in each frame. With 1,001 tabs, a hot frame allocated 12.0 MB. The strip did not scroll, so the tabs at the end were not available. Scrolling: - Each tab is 200 px wide with a 4 px gap. - A wheel or a trackpad scrolls the strip sideways. - The scroll position stays in the content range after tabs close. - A change of the active tab scrolls that full tab into view. Mounting: - The strip mounts only the visible tabs and two tabs on each side. - Each tab keeps its pane index in its element ID and close button. - When the tabs fit, the layout is the same as before. Tag chips: - The All Docs list and grid now draw a tag without a color in #64748b. - The document inspector uses the same color for such a tag.