Skip to content

Commit

Permalink
fix: correct closing of command palette
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Nijhuis committed Dec 27, 2023
1 parent d596bc2 commit 3f1d2d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/AuthCheck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
AlertDialogHeader,
AlertDialogTitle,
} from "@/components/ui/alert-dialog";
import { ScrollArea } from "@/components/ui/scroll-area";
const checking = ref(true);
const success = ref(false);
Expand Down
2 changes: 1 addition & 1 deletion src/components/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const executeCommand = (command: Command) => {
class="fixed w-full h-full py-10 backdrop-blur-xxs"
@click.self="closeCommandPalette"
>
<CommandDialog :open="open">
<CommandDialog :open="open" @update:open="open = false">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/dialog/DialogContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const emitsAsProps = useEmitAsProps(emits);
<slot />

<DialogClose
class="absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-secondary"
class="absolute top-2.5 right-2.5 p-0.5 transition-colors rounded-md hover:bg-secondary"
>
<Cross2Icon class="w-4 h-4" />
<span class="sr-only">Close</span>
Expand Down

0 comments on commit 3f1d2d2

Please sign in to comment.