Skip to content

Commit 4a850cf

Browse files
Enhance snippet display with scrollbar
1 parent d9bdf59 commit 4a850cf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/styles/main.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,25 @@ abbr {
599599
auto-fill,
600600
minmax(min(17.5rem, 100%), 1fr)
601601
); /* [1] */
602+
height: 100%;
603+
max-height: 100vh;
604+
overflow-y: auto;
605+
overflow-x: hidden;
606+
padding-bottom: 1rem;
607+
align-content: start;
608+
}
609+
610+
.snippets::-webkit-scrollbar {
611+
width: 8px;
612+
}
613+
614+
.snippets::-webkit-scrollbar-thumb {
615+
background: #888;
616+
border-radius: 4px;
617+
}
618+
619+
.snippets::-webkit-scrollbar-thumb:hover {
620+
background: #555;
602621
}
603622

604623
.snippet {

0 commit comments

Comments
 (0)