Skip to content

Commit b70442e

Browse files
committed
fix: On small screen, don't let panel get out of the window
fixes #38
1 parent dc7b8cd commit b70442e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/commandpalette/styles/DefaultCommandPalette.css.tid

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ tags: $:/tags/Stylesheet
1515
top: calc(var(--position-autocomplete-panel-top) + 0.25em) !important;
1616
z-index: 9999;
1717
}
18+
/** On small screen, don't let panel get out of the window */
19+
@media (min-height: 520px) {
20+
.aa-Panel {
21+
max-height: 75vh;
22+
}
23+
}
24+
@media (max-height: 520px) {
25+
.aa-Panel {
26+
max-height: 60vh;
27+
}
28+
}
1829
.tw-command-palette-default-container {
1930
position: fixed;
2031
background: <<colour page-background>>;

0 commit comments

Comments
 (0)