11import { Command as CommandPrimitive } from "cmdk" ;
2- import { FileTextIcon , SearchIcon } from "lucide-react" ;
2+ import { FileTextIcon , SearchIcon , XIcon } from "lucide-react" ;
33import {
44 createContext ,
55 useCallback ,
@@ -10,7 +10,6 @@ import {
1010import { createPortal } from "react-dom" ;
1111import { useHotkeys } from "react-hotkeys-hook" ;
1212
13- import { Kbd } from "@hypr/ui/components/ui/kbd" ;
1413import { cn } from "@hypr/utils" ;
1514
1615import { useMainContentCenterOffset } from "~/shared/main/content-offset" ;
@@ -190,7 +189,7 @@ export function OpenNoteDialog({
190189 >
191190 < div
192191 className = { cn ( [
193- "border-border/80 bg-background rounded-xl border" ,
192+ "border-border/80 bg-background rounded-2xl border" ,
194193 "shadow-[0_25px_50px_-12px_rgba(0,0,0,0.25)]" ,
195194 "overflow-hidden" ,
196195 ] ) }
@@ -218,6 +217,7 @@ export function OpenNoteDialog({
218217 ] ) }
219218 />
220219 < button
220+ aria-label = "Close"
221221 onClick = { ( ) => handleOpenChange ( false ) }
222222 className = { cn ( [
223223 "h-5 w-5 rounded-full" ,
@@ -227,7 +227,7 @@ export function OpenNoteDialog({
227227 "transition-colors" ,
228228 ] ) }
229229 >
230- ×
230+ < XIcon className = "h-3 w-3" />
231231 </ button >
232232 </ div >
233233
@@ -302,27 +302,6 @@ export function OpenNoteDialog({
302302 </ >
303303 ) }
304304 </ CommandPrimitive . List >
305-
306- < div
307- className = { cn ( [
308- "flex items-center justify-center gap-4 px-4 py-2.5" ,
309- "border-border/60 border-t" ,
310- "text-muted-foreground text-xs" ,
311- ] ) }
312- >
313- < span className = "flex items-center gap-1.5" >
314- < Kbd className = "text-[10px]" > ↑↓</ Kbd >
315- < span > to navigate</ span >
316- </ span >
317- < span className = "flex items-center gap-1.5" >
318- < Kbd className = "text-[10px]" > ↵</ Kbd >
319- < span > to open</ span >
320- </ span >
321- < span className = "flex items-center gap-1.5" >
322- < Kbd className = "text-[10px]" > esc</ Kbd >
323- < span > to dismiss</ span >
324- </ span >
325- </ div >
326305 </ CommandPrimitive >
327306 </ div >
328307 </ div >
0 commit comments