Explorar o código

Merge pull request #2779 from weseek/feat/gw-3755-toc-height-userhome

Changed TOC height in user home and other pages.
Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
446f3201ba
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;
   }, []);