Forráskód Böngészése

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

Changed TOC height in user home and other pages.
Yuki Takei 5 éve
szülő
commit
446f3201ba
1 módosított fájl, 3 hozzáadás és 0 törlés
  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;
   }, []);