Skip to content

Commit

Permalink
Merge pull request #116 from ieedan/avatar-group
Browse files Browse the repository at this point in the history
  • Loading branch information
ieedan authored Feb 20, 2025
2 parents 3f08159 + ead2870 commit 99cc67e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/ui/avatar-group/avatar-group-etc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div
class={cn(
'relative flex size-10 items-center justify-center rounded-full bg-accent text-sm ring ring-background group-data-[orientation="horizontal"]/avatar-group:-ml-2 group-data-[orientation="vertical"]/avatar-group:-mt-2',
'relative flex size-10 items-center justify-center rounded-full bg-accent text-sm ring-2 ring-background',
className
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,4 @@
}: AvatarPrimitive.RootProps = $props();
</script>

<AvatarRoot
bind:ref
class={cn(
'bg-accent ring ring-background first:ml-0 first:mt-0 group-data-[orientation="horizontal"]/avatar-group:-ml-2 group-data-[orientation="vertical"]/avatar-group:-mt-2',
className
)}
{...restProps}
/>
<AvatarRoot bind:ref class={cn('bg-accent ring-2 ring-background', className)} {...restProps} />
2 changes: 1 addition & 1 deletion src/lib/components/ui/avatar-group/avatar-group.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div
data-orientation={orientation}
class={cn(
'group/avatar-group flex items-center data-[orientation="horizontal"]:flex-row data-[orientation="vertical"]:flex-col',
'group/avatar-group flex items-center data-[orientation="horizontal"]:flex-row data-[orientation="vertical"]:flex-col data-[orientation="horizontal"]:-space-x-2 data-[orientation="vertical"]:-space-y-2',
className
)}
>
Expand Down

0 comments on commit 99cc67e

Please sign in to comment.