fix : toc link overflow (#15276)

* fix : toc link overflow

* Update docs/.vitepress/vitepress/styles/content/table-of-content.scss

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
heygsc
2024-02-04 21:46:07 +08:00
committed by GitHub
parent d2fbff70eb
commit 3c36473289

View File

@@ -44,12 +44,11 @@
margin-top: 10px;
font-size: 11px;
color: var(--text-color-lighter);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: inherit;
list-style: none;
.toc-link {
width: 100%;
display: inline-block;
position: relative;
color: var(--text-color-lighter);
@@ -57,6 +56,11 @@
&.active {
color: var(--brand-color);
}
p{
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
&.subitem {