diff options
author | uPagge <upagge@mail.ru> | 2020-12-03 03:57:52 +0300 |
---|---|---|
committer | uPagge <upagge@mail.ru> | 2020-12-03 03:57:52 +0300 |
commit | 99551a93e36180e026c075dce2f331417db01ee7 (patch) | |
tree | 1f0e83283e199ed4563f59e927e0562271fd2007 /src | |
parent | cc1ec25adb7253b80930063ec9c6df889712b623 (diff) |
ps author
exampleSite
toc
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 518923f..06cd237 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -414,7 +414,7 @@ class Theme { const $page = document.getElementsByClassName('page')[0]; const rect = $page.getBoundingClientRect(); $toc.style.left = `${rect.left + rect.width + 20}px`; - $toc.style.maxWidth = `${$page.getBoundingClientRect().left - 20}px`; + $toc.style.maxWidth = `${$page.getBoundingClientRect().left - 20 + 314}px`; $toc.style.visibility = 'visible'; const $tocLinkElements = $tocCore.querySelectorAll('a:first-child'); const $tocLiElements = $tocCore.getElementsByTagName('li'); |