Explorar o código

Changed TOC height in user home and other pages.

oshikishintaro %!s(int64=5) %!d(string=hai) anos
pai
achega
d22367c8d7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 
     // 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;
   }, []);