Mao 4 роки тому
батько
коміт
7089157271

+ 1 - 1
packages/app/src/components/Sidebar/PageTree/ItemsTree.tsx

@@ -94,7 +94,7 @@ const renderByInitialNode = (
 
 // --- Auto scroll related vars and util ---
 
-const SCROLL_OFFSET_TOP = 150; // approximate height of (navigation + page tree's header + some space)
+const SCROLL_OFFSET_TOP = window.innerHeight / 2;
 
 const scrollTargetItem = () => {
   const scrollElement = document.getElementById('grw-sidebar-contents-scroll-target');