diff options
| author | Eltrac <hi@guhub.cn> | 2025-08-23 22:02:24 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-08-23 22:02:24 +0800 |
| commit | efc36b044e2c86956a1f57fa7aca9a5949c15637 (patch) | |
| tree | bb865580fcf5eb748167747981228fd048a16b95 /assets/css/components | |
| parent | 6c50d33a712ad5274c3119f775ee46a944edbd02 (diff) | |
refactor: move table of content to the right
Diffstat (limited to 'assets/css/components')
| -rw-r--r-- | assets/css/components/_toc.scss | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/css/components/_toc.scss b/assets/css/components/_toc.scss index 0fcd9188..e8486557 100644 --- a/assets/css/components/_toc.scss +++ b/assets/css/components/_toc.scss @@ -16,6 +16,8 @@ display: inline-flex; align-items: center; gap: .5rem; + text-overflow: ellipsis; + white-space: nowrap; &::before { content: ''; display: inline-block; @@ -24,6 +26,7 @@ background-color: var(--block-background-color); border-radius: .2rem; transition: background .3s; + flex-shrink: 0; } } |
