Skip to content

Commit

Permalink
fix: make scrollbar thin at code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed May 7, 2024
1 parent b025278 commit 84db3c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,10 @@ ul {
list-style-type: disc;
}

.tw-scrollbar-thin {
scrollbar-width: thin;
}

:root {
/* ========== Global ========== */
/* Color of the background */
Expand Down
3 changes: 3 additions & 0 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
ul {
@apply tw-list-disc tw-list-outside;
}
.tw-scrollbar-thin {
scrollbar-width: thin;
}

:root {
/* ========== Global ========== */
Expand Down
4 changes: 3 additions & 1 deletion layouts/_default/_markup/render-codeblock.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,7 @@
group-[.is-closed]:!tw-max-h-0
group-[.is-wrap]:tw-text-wrap
tw-overflow-y-hidden
tw-overflow-x-auto">{{ $result.Inner }}</code></pre>
tw-overflow-x-auto
tw-scrollbar-thin
">{{ $result.Inner }}</code></pre>
</div>

0 comments on commit 84db3c1

Please sign in to comment.