Files
AFFiNE/packages
DarkSky d790bd43a2 perf(desktop): virtualize the app tab strip and unify the unhydrated tag color
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.
2026-12-03 13:30:01 +09:00
..