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 (
-
- - {t("demo_banner")} -
-
- - -
+ + {t("demo_banner")} + + + + + {isResetting ? ( + + ) : ( + + )} +
); } @@ -1766,7 +1755,8 @@ function SidebarImpl({ )} - {!isCollapsed && } + {/* No rule under it on Mountain View's canvas, which has none. */} + {!isCollapsed && } {!isCollapsed && } {/* Mailbox List */}