From e401979851b9b56a75d68937511fa4a65f81f70e Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 5 Mar 2026 17:21:45 -0600 Subject: [PATCH] fix(ui): vertically center close button in command palette on mobile The X close button in the command palette dialog used the generic dialog positioning (absolute top-4 right-4), which was visually offset from the search input on mobile. Replace with a custom close button that matches the input wrapper height (h-12) and uses flex centering for proper vertical alignment. Co-Authored-By: Claude Opus 4.6 --- ui/src/components/ui/command.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ui/command.tsx b/ui/src/components/ui/command.tsx index 8cb4ca7a..bd2ee877 100644 --- a/ui/src/components/ui/command.tsx +++ b/ui/src/components/ui/command.tsx @@ -2,7 +2,8 @@ import * as React from "react" import { Command as CommandPrimitive } from "cmdk" -import { SearchIcon } from "lucide-react" +import { SearchIcon, XIcon } from "lucide-react" +import { Dialog as DialogPrimitive } from "radix-ui" import { cn } from "@/lib/utils" import { @@ -50,11 +51,20 @@ function CommandDialog({ {children} + {showCloseButton && ( + + + Close + + )} )