Skip to content

Commit 838791f

Browse files
nit: add tooltip to focus search bar shortcut hint
1 parent 572ef23 commit 838791f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/web/src/app/[domain]/components/searchBar/searchBar.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,18 @@ export const SearchBar = ({
266266
indentWithTab={false}
267267
autoFocus={autoFocus ?? false}
268268
/>
269-
<KeyboardShortcutHint shortcut="/" />
269+
<Tooltip
270+
delayDuration={100}
271+
>
272+
<TooltipTrigger asChild>
273+
<div>
274+
<KeyboardShortcutHint shortcut="/" />
275+
</div>
276+
</TooltipTrigger>
277+
<TooltipContent side="bottom" className="flex flex-row items-center gap-2">
278+
Focus search bar
279+
</TooltipContent>
280+
</Tooltip>
270281
<SearchSuggestionsBox
271282
ref={suggestionBoxRef}
272283
query={query}

0 commit comments

Comments
 (0)