Skip to content

Commit 27e1649

Browse files
authored
Merge pull request #1704 from VinaySatrasala/main
Bug-fix: Vertical misalignment of "Ctrl + K" icon inside the search bar #1703
2 parents c5ce474 + 5d72662 commit 27e1649

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/search/SearchBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export function SearchBar({ onCardClick, isMobile = false }: SearchBarProps) {
179179
{state.searchTerm.length === 0 &&
180180
!isMobile &&
181181
(icon !== '⌘' ? (
182-
<kbd className="pointer-events-none absolute right-3 top-2.5 inline-flex h-5 select-none items-center gap-1 rounded border border-gray-200 bg-gray-100 px-1.5 font-mono text-[10px] font-medium text-gray-600 opacity-100 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 sm:block">
183-
<span className="text-xs">{icon}</span>K
182+
<kbd className="pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 inline-flex h-5 select-none items-center gap-1 rounded border border-gray-200 bg-gray-100 px-1.5 font-mono text-[10px] font-medium text-gray-600 opacity-100 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400">
183+
<span className="text-xs leading-none">{icon}K</span>
184184
</kbd>
185185
) : (
186186
<kbd className="pointer-events-none absolute right-3 top-2.5 inline-flex h-5 select-none items-center gap-1 rounded border border-gray-200 bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400">

0 commit comments

Comments
 (0)