mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 05:52:35 +08:00
fix: Omni Search Z-Index
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user