Skip to content

Commit 2a61add

Browse files
committed
style: search dialog tweaks for smaller screens
1 parent f17c769 commit 2a61add

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/SearchDialog.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
if (seen.has(key)) continue;
247247
seen.add(key);
248248
deduped.push(r);
249-
if (deduped.length >= 10) break; // enforce display cap
249+
if (deduped.length >= 7) break; // enforce display cap
250250
}
251251
selectedIndex = deduped.length ? 0 : -1;
252252
renderResults(deduped);
@@ -488,7 +488,7 @@
488488
.keys-help { display: flex; flex-wrap: wrap; gap: var(--wa-space-m); color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); margin-top: var(--wa-space-s); justify-content: center; }
489489
.keys-help kbd { font-family: var(--wa-font-family-code); padding: var(--wa-space-3xs) var(--wa-space-2xs); border: 1px solid var(--wa-color-neutral-border-normal); border-radius: var(--wa-border-radius-s); background: var(--wa-color-neutral-fill-quiet); }
490490

491-
.results { list-style: none; margin: 0; padding: 0; overflow: auto; border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); flex: 1; min-height: 200px; display: block !important; visibility: visible !important; position: relative; z-index: 2; }
491+
.results { list-style: none; margin: 0; padding: 0; overflow: auto; border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); flex: 1; min-height: 150px; display: block !important; visibility: visible !important; position: relative; z-index: 2; }
492492

493493
.preview-header { display: flex; justify-content: space-between; align-items: center; }
494494
.preview-frame { position: relative; overflow: auto; border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-m); flex: 1; }

0 commit comments

Comments
 (0)