Skip to content

Commit 0308ccb

Browse files
committed
fix: Apply border-radius to search scrollbar
1 parent 2bc3cbf commit 0308ccb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

assets/sass/search.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
.pagefind-ui__results-area {
2121
margin-top: 0;
22+
max-height: 50vh;
23+
padding: 0 1rem;
24+
overflow-y: scroll;
2225
}
2326

2427
.pagefind-ui__results li:last-child {
@@ -63,14 +66,13 @@
6366

6467
.pagefind-ui__drawer {
6568
background-color: var(--bg-default);
66-
padding: 0 1rem;
69+
padding: 0;
6770
overscroll-behavior: contain;
68-
overflow-y: scroll;
71+
overflow: hidden;
6972
position: absolute;
7073
top: 7rem;
7174
width: 100%;
7275
z-index: 6;
73-
max-height: 50vh;
7476
border: var(--border);
7577
border-radius: 0 0 var(--border-radius-l) var(--border-radius-l);
7678
}

0 commit comments

Comments
 (0)