diff --git a/webui/src/App.tsx b/webui/src/App.tsx index a98704fee..fd398e63f 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -2880,6 +2880,7 @@ function Shell({ initialSection={settingsInitialSection} initialSettings={settingsSnapshot} showSidebar={view === "settings"} + mainNavigationExpanded={showMainSidebar && hostSidebarOpen} onToggleTheme={toggle} onBackToChat={onBackToChat} onModelNameChange={onModelNameChange} diff --git a/webui/src/components/settings/SettingsPage.tsx b/webui/src/components/settings/SettingsPage.tsx index 2be379df4..3dd9f3eec 100644 --- a/webui/src/components/settings/SettingsPage.tsx +++ b/webui/src/components/settings/SettingsPage.tsx @@ -49,6 +49,7 @@ interface SettingsPageProps { controller: SettingsController; theme: "light" | "dark"; showSidebar: boolean; + mainNavigationExpanded: boolean; onToggleTheme: () => void; onBackToChat: () => void; skills: SkillSummary[]; @@ -69,6 +70,7 @@ export function SettingsPage({ controller, theme, showSidebar, + mainNavigationExpanded, onToggleTheme, onBackToChat, skills, @@ -734,6 +736,7 @@ export function SettingsPage({ data-testid="settings-section-transition" ref={setDialogLayoutAnchor} data-settings-section={activeSection} + data-main-navigation-expanded={mainNavigationExpanded} className={cn( "mx-auto w-full animate-in fade-in-0 slide-in-from-bottom-1 py-6 duration-200 ease-out", "motion-reduce:animate-none sm:py-8 lg:py-12", @@ -744,7 +747,7 @@ export function SettingsPage({ )} > {!showSidebar ? ( -