Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-03-09 16:56:17 +0300
committerDillon <dillonzq@outlook.com>2020-03-09 16:56:17 +0300
commit18944037943fa11e96265c58fba62ec0bbec3d68 (patch)
treec90e2d1072c5078498337106d6952ceb5a8cab49 /src
parent2b0e59815e31474e4ee359e45225dec59676d5d8 (diff)
feat(toc): add custom TOC font size
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js2
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') || [];