Просмотр исходного кода

Changed TOC height in user home and other pages.

oshikishintaro 5 лет назад
Родитель
Сommit
d22367c8d7
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/client/js/components/TableOfContents.jsx

+ 3 - 0
src/client/js/components/TableOfContents.jsx

@@ -32,6 +32,9 @@ const TableOfContents = (props) => {
     const containerTop = containerElem.getBoundingClientRect().top;
     const containerTop = containerElem.getBoundingClientRect().top;
 
 
     // window height - revisionToc top - .system-version - .grw-fab-container height - top-of-table-contents height
     // window height - revisionToc top - .system-version - .grw-fab-container height - top-of-table-contents height
+    if (isUserPage) {
+      return window.innerHeight - containerTop - 20 - 155 - 26 - 40;
+    }
     return window.innerHeight - containerTop - 20 - 155 - 26;
     return window.innerHeight - containerTop - 20 - 155 - 26;
   }, []);
   }, []);