Skip to content

Commit

Permalink
add animations when selecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Inglan committed Jan 3, 2025
1 parent 47d5f52 commit cfd7943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/ui/command/command-item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<CommandPrimitive.Item
class={cn(
'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
'relative flex scale-95 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none duration-200 aria-selected:scale-100 aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
className
)}
bind:ref
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ui/command/command-link-item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<CommandPrimitive.LinkItem
class={cn(
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
'relative flex scale-95 cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none duration-200 aria-selected:scale-100 aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className
)}
bind:ref
Expand Down

0 comments on commit cfd7943

Please sign in to comment.