diff --git a/frontend/src/routes/(root)/(logged)/+layout.svelte b/frontend/src/routes/(root)/(logged)/+layout.svelte index 3fe47a74fc..3084d7dfc2 100644 --- a/frontend/src/routes/(root)/(logged)/+layout.svelte +++ b/frontend/src/routes/(root)/(logged)/+layout.svelte @@ -331,6 +331,8 @@ const sessionsSwitchShown = $derived( globalAiEnabled && sessionsAllowed && !$copilotInfo.workspaceDisabled ) + // The rail's top row; the nav below it pads to the page header's height when it is absent. + const switchRowShown = $derived(!embedded && sessionsSwitchShown) const askAiShown = $derived( (!globalAiEnabled || !sessionsAllowed) && !$copilotInfo.workspaceDisabled ) @@ -1255,7 +1257,7 @@ outside this layout, and their shortcut must reopen the URL that is their creden - {#if !embedded && sessionsSwitchShown} + {#if switchRowShown}