Skip to content

Commit 00ec29d

Browse files
committed
fix(app): scroll jumping when expanding workspaces
1 parent 438916d commit 00ec29d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/app/src/pages/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,7 @@ export default function Layout(props: ParentProps) {
12441244
if (!props.mobile) scrollContainerRef = el
12451245
}}
12461246
class="size-full flex flex-col py-2 overflow-y-auto no-scrollbar"
1247+
style={{ "overflow-anchor": "none" }}
12471248
>
12481249
<nav class="flex flex-col gap-1 px-2">
12491250
<Show when={loading()}>
@@ -1459,6 +1460,7 @@ export default function Layout(props: ParentProps) {
14591460
if (!sidebarProps.mobile) scrollContainerRef = el
14601461
}}
14611462
class="size-full flex flex-col py-2 gap-4 overflow-y-auto no-scrollbar"
1463+
style={{ "overflow-anchor": "none" }}
14621464
>
14631465
<SortableProvider ids={workspaces()}>
14641466
<For each={workspaces()}>

0 commit comments

Comments
 (0)