diff --git a/.eslintrc.json b/.eslintrc.json index bf69df28c..a8ac41464 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,4 @@ { "extends": "theme-next", - "parserOptions": { - "ecmaVersion": 2018 - }, "root": true } diff --git a/package.json b/package.json index cbb67abf5..6a2676b71 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "homepage": "https://theme-next.js.org", "devDependencies": { "eslint": "7.1.0", - "eslint-config-theme-next": "1.1.4", + "eslint-config-theme-next": "1.2.0", "gulp": "4.0.2", "gulp-shell": "0.8.0", "js-yaml": "3.14.0", diff --git a/source/js/utils.js b/source/js/utils.js index 98745da5a..a8467259a 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -320,7 +320,7 @@ NexT.utils = { const sidebarb2t = document.querySelector('.sidebar-inner .back-to-top'); const sidebarb2tHeight = sidebarb2t ? sidebarb2t.offsetHeight : 0; const sidebarOffset = CONFIG.sidebar.offset || 12; - let sidebarSchemePadding = CONFIG.sidebar.padding * 2 + sidebarNav.offsetHeight + sidebarb2tHeight; + let sidebarSchemePadding = (CONFIG.sidebar.padding * 2) + sidebarNav.offsetHeight + sidebarb2tHeight; if (CONFIG.scheme === 'Pisces' || CONFIG.scheme === 'Gemini') sidebarSchemePadding += sidebarOffset * 2; // Initialize Sidebar & TOC Height. const sidebarWrapperHeight = document.body.offsetHeight - sidebarSchemePadding + 'px';