diff options
author | Dillon <dillonzq@outlook.com> | 2020-03-09 16:56:17 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-03-09 16:56:17 +0300 |
commit | 18944037943fa11e96265c58fba62ec0bbec3d68 (patch) | |
tree | c90e2d1072c5078498337106d6952ceb5a8cab49 /src | |
parent | 2b0e59815e31474e4ee359e45225dec59676d5d8 (diff) |
feat(toc): add custom TOC font size
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 62759a1..141ad3d 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -119,7 +119,7 @@ } const toc = document.getElementById('toc-auto'); const page = document.getElementsByClassName('page')[0]; - toc.style.maxWidth = `${page.getBoundingClientRect().left - 40}px`; + toc.style.maxWidth = `${page.getBoundingClientRect().left - 20}px`; this._tocLinks = this._tocLinks || tocCore.getElementsByTagName('a'); this._tocLis = this._tocLis || tocCore.getElementsByTagName('li'); this._headerLinks = this._headerLinks || document.getElementsByClassName('headerLink') || []; |