fix: Omni Search Z-Index

This commit is contained in:
Catriel Müller
2026-05-27 20:51:05 -03:00
parent 49d36f483a
commit 9f3eeffcce
2 changed files with 11 additions and 1 deletions
@@ -131,6 +131,12 @@ export function OmniSearch() {
const filtered = createMemo(() => entries().filter((item) => matches(item, term())))
const server = createMemo(() => query()?.url ?? fallback())
createEffect(() => {
document.body.classList.toggle("omni-search-open", open())
})
onCleanup(() => document.body.classList.remove("omni-search-open"))
function close() {
setOpen(false)
setTerm("")
@@ -29,6 +29,10 @@
backdrop-filter: none;
}
.omni-search-open .kilo-console .app-header {
z-index: 10000;
}
.kilo-console .header-brand {
grid-column: 1;
display: inline-flex;
@@ -116,7 +120,7 @@
position: fixed;
top: calc((var(--app-header-height) - 2.5rem) / 2);
left: 50%;
z-index: 80;
z-index: 10001;
display: grid;
grid-template-rows: auto auto auto;
width: min(35rem, calc(100vw - 2rem));