From 18748084705dc48994b7378217e0df1e8bfbfe3f Mon Sep 17 00:00:00 2001 From: Guilhem Date: Mon, 19 Oct 2026 23:16:37 +0200 Subject: [PATCH] fix: align sidebar home with the header when ai sessions is off (#11882) * fix: align sidebar home with the header when ai sessions is off Co-Authored-By: Claude Opus 5.5 (1M context) * refactor: share the sidebar switch row condition Co-Authored-By: Claude Opus 5.5 (1M context) --------- Co-authored-by: Claude Opus 5.5 (1M context) --- frontend/src/routes/(root)/(logged)/+layout.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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}