diff --git a/webapp/src/App.tsx b/webapp/src/App.tsx index f055571..47612d9 100644 --- a/webapp/src/App.tsx +++ b/webapp/src/App.tsx @@ -19,6 +19,7 @@ import { type TimelineBucket, } from './lib/api' import { DocsNavProvider } from './lib/docsNav' +import { useSettingsPanel } from './lib/useSettingsPanel' const POLL_MS = 2000 @@ -34,7 +35,12 @@ function parsePopOutQuery(): { section: PopOutSectionId | null; range: TimeRange return { section, range } } +// Popped-out routes render outside NavMenu, which is otherwise the only place that calls `useSettingsPanel()` and applies the +// colour scheme / custom theme CSS as a side effect. Calling it here (state unused) keeps standalone tabs themed the same as +// the main window, including staying live if settings change while the tab is open. function StandalonePage({ children }: { children: ReactNode }) { + useSettingsPanel() + return (
{children}