From 04f4c1eba22bc86cf693236c1ea6638080e1ead8 Mon Sep 17 00:00:00 2001 From: Natalie Date: Tue, 9 Jun 2026 14:33:04 -0500 Subject: [PATCH] web: make settings nav floating sticky on mobile with backdrop blur --- js/web/src/routes/settings.tsx | 108 +++++++++++++++++++++------------ 1 file changed, 70 insertions(+), 38 deletions(-) diff --git a/js/web/src/routes/settings.tsx b/js/web/src/routes/settings.tsx index ba74aafe5..82c7b85f0 100644 --- a/js/web/src/routes/settings.tsx +++ b/js/web/src/routes/settings.tsx @@ -107,33 +107,51 @@ function NavGroupItem({ item }: { item: NavGroup }) { return (
- - {open && ( -
- {item.children.map((child) => ( - - - {t(child.labelKey)} - - ))} -
- )} + {t(item.labelKey)} + + + {/* Desktop: expandable group */} +
+ + {open && ( +
+ {item.children.map((child) => ( + + + {t(child.labelKey)} + + ))} +
+ )} +
); } @@ -164,21 +182,35 @@ function SettingsLayout() { const { t } = useTranslation("settings"); return ( -
-

- {t("settings-title")} -

- -
- {/* gradient fades for mobile scroll hint */} -
-
- -