From d046f6997d0bca494b5e74c542badc1b498ee889 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Tue, 6 Oct 2026 16:55:16 +0200 Subject: [PATCH] :bug: Keep assets list view scroll position across sidebar tabs (#12115) In list view the height of each component row depended on its thumbnail, which renders deferred. When the Assets tab mounted again, rows were shorter until the thumbnails appeared, so the restored scrollTop landed several rows further down and scroll anchoring kept it there. Reserve the thumbnail height in the row grid so rows keep their size from the first render. Closes #11971 AI-assisted-by: claude-opus-5-5 --- .../src/app/main/ui/workspace/sidebar/assets/components.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets/components.scss b/frontend/src/app/main/ui/workspace/sidebar/assets/components.scss index c09e1e4d0f..c3d442b4c0 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets/components.scss +++ b/frontend/src/app/main/ui/workspace/sidebar/assets/components.scss @@ -69,6 +69,10 @@ .component-item-list { display: grid; grid-template-columns: auto 1fr auto; + + // The thumbnail renders deferred; reserve its height so rows keep their + // size on mount and the saved sidebar scroll lands on the same item. + grid-template-rows: $sz-40; align-items: center; column-gap: var(--sp-s); padding: var(--sp-xxs);