Skip to content

Commit 8350371

Browse files
geekrainywafer-li
authored andcommitted
Fix issue iissnan#1923.
1 parent 3c32755 commit 8350371

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

source/css/_common/components/sidebar/sidebar-toc.styl

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
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
}

source/js/src/utils.js

-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ $(document).ready(function () {
323323
if ($('.sidebar-panel').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)');
327326

328327
// Initialize Sidebar & TOC Height.
329328
updateSidebarHeight(document.body.clientHeight - NexT.utils.getSidebarSchemePadding());

0 commit comments

Comments
 (0)