fix(app): scroll jumping when expanding workspaces

This commit is contained in:
Adam 2026-01-16 12:58:07 -06:00
parent 438916de5f
commit 00ec29dae6
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75

View File

@ -1244,6 +1244,7 @@ export default function Layout(props: ParentProps) {
if (!props.mobile) scrollContainerRef = el
}}
class="size-full flex flex-col py-2 overflow-y-auto no-scrollbar"
style={{ "overflow-anchor": "none" }}
>
<nav class="flex flex-col gap-1 px-2">
<Show when={loading()}>
@ -1459,6 +1460,7 @@ export default function Layout(props: ParentProps) {
if (!sidebarProps.mobile) scrollContainerRef = el
}}
class="size-full flex flex-col py-2 gap-4 overflow-y-auto no-scrollbar"
style={{ "overflow-anchor": "none" }}
>
<SortableProvider ids={workspaces()}>
<For each={workspaces()}>