File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3333.post-toc .nav-item {
3434 overflow : hidden ;
3535 text-overflow : ellipsis ;
36+ text-align : justify ;
3637 white-space : nowrap if ! hexo-config ('toc.wrap' );
3738 line-height : 1.8 ;
3839}
Original file line number Diff line number Diff line change @@ -320,10 +320,12 @@ $(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)' ) ;
325325 }
326- $ ( '.post-toc' ) . css ( 'width' , 'calc(100% + ' + scrollbarWidth + 'px)' ) ;
326+ if ( $ ( '.post-toc-wrap' ) . height ( ) > ( document . body . clientHeight - NexT . utils . getSidebarSchemePadding ( ) ) ) {
327+ $ ( '.post-toc' ) . css ( 'width' , 'calc(100% + ' + scrollbarWidth + 'px)' ) ;
328+ }
327329
328330 // Initialize Sidebar & TOC Height.
329331 updateSidebarHeight ( document . body . clientHeight - NexT . utils . getSidebarSchemePadding ( ) ) ;
You can’t perform that action at this time.
0 commit comments