From b9d795b2ccd70fa5c8f348d2146bdfb28a169035 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 31 Oct 2026 01:37:42 +0100 Subject: [PATCH] fix: show demo mode as a plain sidebar row instead of a tinted box --- components/layout/sidebar.tsx | 52 ++++++++++++++--------------------- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/components/layout/sidebar.tsx b/components/layout/sidebar.tsx index bb2440710..35d990199 100644 --- a/components/layout/sidebar.tsx +++ b/components/layout/sidebar.tsx @@ -1005,7 +1005,7 @@ function SharedAccountTags({ ); } -function DemoBanner() { +function DemoBanner({ ruled }: { ruled: boolean }) { const t = useTranslations('sidebar'); const { isDemoMode, loginDemo } = useAuthStore(useShallow((state) => ({ isDemoMode: state.isDemoMode, loginDemo: state.loginDemo }))); const { startTour, resetTourCompletion } = useTour(); @@ -1029,41 +1029,30 @@ function DemoBanner() { setTimeout(() => startTour(), 100); }; + // One line in the sidebar's own style, like a section header: muted label, + // the header's small icon buttons, no tinted block. Icon-only because + // "Tour" and "Reset" run long in several locales and the line is narrow. + const buttonClass = "-my-0.5 h-6 w-6 rounded text-muted-foreground/70 hover:bg-muted hover:text-foreground"; return (