Skip to content

Commit 47d033b

Browse files
committed
chore: improve popup width
1 parent ec97b2d commit 47d033b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

_layouts/post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ <h1 data-toc-skip>{{ page.title }}</h1>
111111
</button>
112112

113113
<dialog id="toc-popup" class="p-0">
114-
<div class="header d-flex flex-row align-items-center justify-content-between ps-4">
115-
<div class="label text-truncate py-2">{{- page.title -}}</div>
114+
<div class="header d-flex flex-row align-items-center justify-content-between">
115+
<div class="label text-truncate py-2 ms-4">{{- page.title -}}</div>
116116
<button id="toc-popup-close" type="button" class="btn btn-link">
117117
<i class="fas fa-close fa-fw"></i>
118118
</button>

_sass/layout/post.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ header {
389389
min-width: 20rem;
390390
font-size: 1.05rem;
391391

392+
@media all and (min-width: 576px) {
393+
max-width: 32rem;
394+
}
395+
392396
&[open] {
393397
-webkit-animation: $slide-in;
394398
animation: $slide-in;
@@ -414,7 +418,6 @@ header {
414418

415419
.label {
416420
font-family: $font-family-heading;
417-
max-width: 25rem;
418421
}
419422
}
420423

@@ -469,6 +472,7 @@ header {
469472
#toc-popup-content {
470473
overflow: auto;
471474
max-height: calc(100vh - 4 * $topbar-height);
475+
font-family: $font-family-heading;
472476
}
473477
}
474478

0 commit comments

Comments
 (0)