From b5ed5c749a05508391bb24bc5428df0a7749d635 Mon Sep 17 00:00:00 2001 From: Guilhem Date: Tue, 27 Oct 2026 23:49:46 +0100 Subject: [PATCH] fix: stop the breadcrumb sliding when switching sessions (#12045) * fix: stop the breadcrumb sliding when switching sessions Co-Authored-By: Claude Opus 5.5 * docs: state the band offset constraint without the old arrangement Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .../src/routes/(root)/(logged)/+layout.svelte | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/frontend/src/routes/(root)/(logged)/+layout.svelte b/frontend/src/routes/(root)/(logged)/+layout.svelte index a2170657e3..4f51da3a4c 100644 --- a/frontend/src/routes/(root)/(logged)/+layout.svelte +++ b/frontend/src/routes/(root)/(logged)/+layout.svelte @@ -214,9 +214,7 @@ // which tracks the pointer. Easing that one leaves the band lying over the panel it is // meant to stop beside — an empty strip across that panel's own header until it catches up. let bandTransitionClass = $derived( - resizingSidebar && !sidebarSnapping - ? '' - : 'transition-[left,padding-left] duration-200 ease-in-out' + resizingSidebar && !sidebarSnapping ? '' : 'transition-[padding-left] duration-200 ease-in-out' ) // Set while a drag is live so it can be torn down if the layout unmounts // mid-drag (otherwise the window listeners would leak). @@ -1526,12 +1524,17 @@ outside this layout, and their shortcut must reopen the URL that is their creden up into the gap and the workspace menu losing the trigger it hangs from. In flow, the band spans the content beside the rail. With an inset, a page owns the right edge from the top (a session's side panel): the band floats, stopping - where that column starts, and the page pads its own content to clear it. --> + where that column starts, and the page pads its own content to clear it. + The rail offset must be padding in both placements, never `left` in the floating one: + a switch between placements (sessions with and without a side panel) would then ease + the padding to or from zero and slide the whole breadcrumb across. -->