fix(ui): left borderline of TOC is notched (#2140)

This commit is contained in:
Cotes Chung 2024-12-22 03:11:20 +08:00 committed by GitHub
parent 1b93f6db9b
commit 8a4d0bc4ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -3,7 +3,7 @@
{% if enable_toc %} {% if enable_toc %}
<div class="toc-border-cover z-3"></div> <div class="toc-border-cover z-3"></div>
<section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4"> <section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4">
<h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2> <h2 class="panel-heading ps-3 pb-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
<nav id="toc"></nav> <nav id="toc"></nav>
</section> </section>
{% endif %} {% endif %}

View file

@ -272,12 +272,8 @@ header {
padding-left: 0; padding-left: 0;
li { li {
&:not(:last-child) {
margin: 0.4rem 0;
}
a { a {
padding: 0.2rem 0 0.2rem 1.25rem; padding: 0.4rem 0 0.4rem 1.25rem;
} }
} }