Skip to content

Commit f210902

Browse files
authored
FIX: sidebar asymmetry in Pisces | Gemini.
iissnan#1916, iissnan#1923, iissnan#2042, iissnan#2044.
1 parent 09ef52e commit f210902

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/js/src/utils.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,10 @@ $(document).ready(function () {
320320

321321
// Initialize Sidebar & TOC Width.
322322
var scrollbarWidth = NexT.utils.getScrollbarWidth();
323-
if ($('.sidebar-panel').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) {
323+
if ($('.site-overview-wrap').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) {
324324
$('.site-overview').css('width', 'calc(100% + ' + scrollbarWidth + 'px)');
325+
}
326+
if ($('.post-toc-wrap').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) {
325327
$('.post-toc').css('width', 'calc(100% + ' + scrollbarWidth + 'px)');
326328
}
327329

0 commit comments

Comments
 (0)