Sfoglia il codice sorgente

fix(app): scroll jumping when expanding workspaces

Adam 1 mese fa
parent
commit
00ec29dae6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      packages/app/src/pages/layout.tsx

+ 2 - 0
packages/app/src/pages/layout.tsx

@@ -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()}>