You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ec86d9c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): theme editor returns to its spot after the window shrinks and grows back
The theme editor panel clamped its stored position on every window resize,
so shrinking the window and growing it back left the panel pinned to the
edge it was pushed against. The panel now stores geometry as the user left
it and fits it to the current viewport in render (new useViewportSize hook,
a useSyncExternalStore over window resize), which removes the resize effect.
Also in appearance settings:
- ThemeColorPicker: the per-frame commit batcher lives in a small object
owned by the popover and is flushed when the popover closes and when a
drag ends, replacing the unmount-flush effect.
- FontFamilyPicker: the already-granted local-fonts probe runs from the
store's subscribe instead of a mount effect.
- SettingsPanels: the legacy features fold opens for a search jump during
render (previous-value state) instead of in an effect.
Effects: ThemeEditorPanel 5 -> 4, ThemeColorPicker 1 -> 0,
FontFamilyPicker 2 -> 1, SettingsPanels 1 -> 0.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments