Skip to content

Commit bbb1baa

Browse files
fix(nx-dev): widen search dialog (#34504)
1 parent 91b350e commit bbb1baa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

astro-docs/src/styles/global.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,18 @@ pre {
170170
border-radius: var(--radius-lg);
171171
}
172172

173+
/* Search dialog: widen modal and force single-column results layout
174+
to prevent layout shift between 1-col and 2-col at different zoom levels */
175+
@media (min-width: 50rem) {
176+
site-search dialog {
177+
max-width: 48rem;
178+
}
179+
}
180+
181+
site-search .pagefind-ui__drawer {
182+
flex-direction: column;
183+
}
184+
173185
/* Buttons */
174186
button,
175187
.button,

0 commit comments

Comments
 (0)