Skip to content

Commit 1ff9961

Browse files
Remove search palette footer
Remove the keyboard shortcut hint row from the open note search palette.
1 parent 2b9d773 commit 1ff9961

1 file changed

Lines changed: 4 additions & 25 deletions

File tree

apps/desktop/src/shared/open-note-dialog.tsx

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Command as CommandPrimitive } from "cmdk";
2-
import { FileTextIcon, SearchIcon } from "lucide-react";
2+
import { FileTextIcon, SearchIcon, XIcon } from "lucide-react";
33
import {
44
createContext,
55
useCallback,
@@ -10,7 +10,6 @@ import {
1010
import { createPortal } from "react-dom";
1111
import { useHotkeys } from "react-hotkeys-hook";
1212

13-
import { Kbd } from "@hypr/ui/components/ui/kbd";
1413
import { cn } from "@hypr/utils";
1514

1615
import { 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

Comments
 (0)