diff --git a/frontend/src/components/AppShell.vue b/frontend/src/components/AppShell.vue index b58d307..7986021 100644 --- a/frontend/src/components/AppShell.vue +++ b/frontend/src/components/AppShell.vue @@ -21,6 +21,7 @@ const ui = useUiStore(); const managing = ref(false); const showShortcuts = ref(false); const paletteOpen = ref(false); +const drawer = ref(false); const searchInput = ref(null); const searchText = ref(typeof route.query.q === "string" ? route.query.q : ""); let searchTimer: ReturnType | undefined; @@ -79,6 +80,10 @@ function onKeydown(e: KeyboardEvent) { showShortcuts.value = false; return; } + if (e.key === "Escape" && drawer.value) { + drawer.value = false; + return; + } if (e.metaKey || e.ctrlKey || e.altKey) return; if (gPending) { gPending = false; @@ -148,6 +153,7 @@ watch( () => route.name, (name) => { if (name !== "search") searchText.value = ""; + drawer.value = false; }, ); @@ -163,6 +169,26 @@ async function signOut() { class="sticky top-0 z-20 border-b border-neutral-200 bg-neutral-50/90 backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/90" >
+
TS @@ -203,8 +229,17 @@ async function signOut() {
-