mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 20:03:30 +02:00
refactor: update ShortcutKbd component styling to adjust key width based on key length
This commit is contained in:
parent
195dbc5fc0
commit
ed6ff33933
1 changed files with 4 additions and 1 deletions
|
|
@ -13,7 +13,10 @@ export function ShortcutKbd({ keys, className }: ShortcutKbdProps) {
|
|||
{keys.map((key) => (
|
||||
<kbd
|
||||
key={key}
|
||||
className="inline-flex size-[18px] items-center justify-center rounded-[4px] bg-white/[0.18] font-sans text-[11px] leading-none"
|
||||
className={cn(
|
||||
"inline-flex h-[18px] items-center justify-center rounded-[4px] bg-white/[0.18] font-sans text-[11px] leading-none",
|
||||
key.length > 1 ? "px-1" : "w-[18px]"
|
||||
)}
|
||||
>
|
||||
{key}
|
||||
</kbd>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue