Explorar el Código

scroll offset top

Mao hace 4 años
padre
commit
6b1fcbd112
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/app/src/components/Sidebar/PageTree/ItemsTree.tsx

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

@@ -85,7 +85,7 @@ const renderByInitialNode = (
 
 // --- Auto scroll related utils and vars ---
 
-const SCROLL_OFFSET_TOP = 80; // approximate height of (navigation + page tree's header)
+const SCROLL_OFFSET_TOP = 60; // approximate height of (navigation + page tree's header)
 const MUTATION_OBSERVER_CONFIG = { childList: true, subtree: true };
 
 // const scrollTo = (scrollElement:HTMLElement) => {