Skip to content

Commit 9eb13de

Browse files
committed
refactor: reduce the height of the TOC bottom overlay in desktop mode
1 parent 2f78051 commit 9eb13de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_includes/toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

_sass/pages/_post.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ header {
260260
-webkit-animation: fade-up 0.8s;
261261
animation: fade-up 0.8s;
262262
overflow-y: auto;
263-
max-height: calc(100vh - 2rem);
263+
max-height: 100vh;
264264
scrollbar-width: none;
265265
margin-top: 2rem;
266266

@@ -333,7 +333,7 @@ header {
333333
position: fixed;
334334
bottom: 0;
335335
width: 15%;
336-
height: 3.25rem;
336+
height: 2.25rem;
337337
margin-left: -1px;
338338
background: linear-gradient(transparent, var(--main-bg) 70%);
339339
}

0 commit comments

Comments
 (0)