Skip to content

Commit e0cf53f

Browse files
docs: fix search result box position for small screens (#19328)
docs: fix result box position
1 parent f92a680 commit e0cf53f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docs/src/assets/scss/components/search.scss

+3-8
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,11 @@
9494
width: 100%;
9595
border-radius: 0 0 var(--border-radius) var(--border-radius);
9696
border: 1px solid var(--divider-color);
97-
position: relative;
98-
top: -1.5rem;
97+
position: absolute;
98+
top: calc(100% - 1.5rem);
9999
max-height: 400px;
100100
overflow-y: auto;
101-
102-
@media all and (min-width: 1024px) {
103-
box-shadow: var(--shadow-lg);
104-
position: absolute;
105-
top: calc(100% - 1.5rem);
106-
}
101+
box-shadow: var(--shadow-lg);
107102

108103
&[data-results="true"] {
109104
padding: 0;

0 commit comments

Comments
 (0)