章节标题过长时toc内的文本会溢出
#1355
Replies: 1 comment
-
diff --git a/include/style/widget.styl b/include/style/widget.styl
index b97231f..e75b25f 100644
--- a/include/style/widget.styl
+++ b/include/style/widget.styl
@@ -13,6 +13,9 @@
.level-left, .level-right
align-items: flex-start
+ .level-item
+ overflow: anywhere
+
.tag
background: $light-grey
color: $white-inver
diff --git a/include/style/widget.styl b/include/style/widget.styl
index b97231f..086f995 100644
--- a/include/style/widget.styl
+++ b/include/style/widget.styl
@@ -6,6 +6,7 @@
.level
margin-bottom: 0
+ overflow: hidden
.level-left, .level-right, .level-item
flex-shrink: 1
@@ -13,6 +14,9 @@
.level-left, .level-right
align-items: flex-start
+ .level-item
+ white-space: nowrap
+
.tag
background: $light-grey
color: $white-invert |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SGSGsama
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
章节标题过长时toc内的文本可能会换行也可能不会,如果不换行的话一会溢出到文章里,有没有设置可以将其强制换行或者隐藏溢出的部分,怀疑时markdown渲染的问题

Beta Was this translation helpful? Give feedback.
All reactions