Skip to content

Commit

Permalink
Update dependency eslint-config-theme-next to v1.2.0 (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
  • Loading branch information
renovate[bot] and renovate-bot authored Jun 20, 2020
1 parent b8e2ce8 commit 8fd0c5a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"extends": "theme-next",
"parserOptions": {
"ecmaVersion": 2018
},
"root": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8fd0c5a

Please sign in to comment.