mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-06 00:00:57 +00:00
fix(ui): stabilize loading states, edits and responsive pages
Hold card and table geometry while data or fonts load. Keep configuration edits inside their source lines and address regressions across the feature pages.
This commit is contained in:
1 parent
6333b757d6
commit
cc6bfe99f7
168 files changed
+2463
-1264
No files matched your search
@@ -48,7 +48,9 @@ export function useShellFrame(lang: Lang, pickLang: (lang: Lang) => void, ap: No
|
||||
const settingsValue = useMemo(() => ({lang, pickLang, ap, paletteSections}), [lang, pickLang, ap, paletteSections]);
|
||||
const menu = useMemo(() => appearanceMenu(t, ap.scheme, ap.dark), [t, ap.scheme, ap.dark]);
|
||||
const [navRef, navPos] = useSlider(route, '[aria-current="page"]');
|
||||
return {paletteSections, settingsValue, menu, navRef, navStyle: navPos ? {translate: `0 ${navPos.y}px`, height: navPos.h} : undefined};
|
||||
// One object per measured position: a fresh one on every render would re-render the memoised navigation.
|
||||
const navStyle = useMemo(() => (navPos ? {translate: `0 ${navPos.y}px`, height: navPos.h} : undefined), [navPos]);
|
||||
return {paletteSections, settingsValue, menu, navRef, navStyle};
|
||||
}
|
||||
|
||||
export function useStartupToasts() {
|
||||
|
||||
Reference in new issue
Block a user