Skip to content

Commit

Permalink
Fix search modal height in Safari (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Jun 18, 2024
1 parent 8662819 commit af81ad3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curly-swans-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Fixes a search dialog height issue in Safari.
3 changes: 2 additions & 1 deletion packages/starlight/components/Search.astro
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const pagefindTranslations = {
box-shadow: var(--sl-shadow-lg);
}
dialog[open] {
display: grid;
display: flex;
}

dialog::backdrop {
Expand All @@ -208,6 +208,7 @@ const pagefindTranslations = {

.dialog-frame {
flex-direction: column;
flex-grow: 1;
gap: 1rem;
padding: 1rem;
}
Expand Down

0 comments on commit af81ad3

Please sign in to comment.