From a660c30f1e68a9c4c5ea202c1f6eb485f4893a96 Mon Sep 17 00:00:00 2001
From: "Bingxi Zhao (Frank)" <13051345080@163.com>
Date: Tue, 24 Nov 2026 16:45:44 +0800
Subject: [PATCH] fix(settings): reuse the app scrim and keep the rail exit
legible
The card's scrim was an 18% foreground tint, which turns into a cream veil in
the dark theme; the shell now reuses var(--overlay) like Modal, so the dimming
is the same colour the rest of the app uses in both themes.
The 224px rail had no room for a title and a labelled back button once a locale
spells both long, so the rail keeps an icon-only exit (aria-label kept) and the
phone header keeps the label. The rail's section list is taller than the card,
so it now shows a bottom fade while there is more to scroll and drops it at the
end, instead of leaving the last row sliced in half with no cue.
---
web/components/settings/SettingsMain.tsx | 29 +++++--
web/components/settings/SettingsNav.tsx | 105 +++++++++++++++--------
2 files changed, 90 insertions(+), 44 deletions(-)
diff --git a/web/components/settings/SettingsMain.tsx b/web/components/settings/SettingsMain.tsx
index 609e3b19a..542ca297b 100644
--- a/web/components/settings/SettingsMain.tsx
+++ b/web/components/settings/SettingsMain.tsx
@@ -72,11 +72,26 @@ export default function SettingsMain({ children }: { children: React.ReactNode }
+ )
+ // The 224px rail has no room for "Settings" and a labelled back button side
+ // by side once a locale spells both long ("Einstellungen" / "Zurück zur
+ // App"), so the rail keeps the title and gives the exit an icon with a
+ // tooltip. The phone header has the width and keeps the label.
+ const railReturnButton = (
+
)
@@ -86,7 +101,7 @@ export default function SettingsMain({ children }: { children: React.ReactNode }
// its own rounded edge, so opening settings no longer replaces the whole
// window. Phones have no room for a floating card and get the full sheet.
{
// Clicking the scrim behaves like Escape: leave settings, but never
@@ -99,11 +114,11 @@ export default function SettingsMain({ children }: { children: React.ReactNode }
className="flex h-dvh w-full min-w-0 flex-col overflow-hidden bg-[var(--background)] md:h-[min(820px,88dvh)] md:w-[min(1080px,94vw)] md:rounded-2xl md:border md:border-[color-mix(in_srgb,var(--border)_70%,transparent)] md:shadow-[0_28px_70px_-32px_rgba(0,0,0,0.45)] lg:flex-row"
>