Skip to content

Commit

Permalink
feat(AvatarGroup): update overflow (nodejs#7273)
Browse files Browse the repository at this point in the history
* feat(AvatarGroupe): update overflow

* fix: align
  • Loading branch information
AugustinMauroy authored Nov 29, 2024
1 parent 116848f commit 65c98af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
12 changes: 3 additions & 9 deletions apps/site/components/Common/AvatarGroup/Avatar/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
}

.avatar {
@apply size-8
flex-shrink-0;
@apply size-8;

.wrapper {
@apply max-xs:block
Expand All @@ -32,14 +31,9 @@

.small {
@apply xs:size-8
xs:-ml-2
ml-0.5
size-10
first:ml-0;
size-10;
}

.medium {
@apply -ml-2.5
size-10
first:ml-0;
@apply size-10;
}
17 changes: 12 additions & 5 deletions apps/site/components/Common/AvatarGroup/index.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
.avatarGroup {
@apply -mb-4
flex
items-center
overflow-x-auto
pb-4;
@apply flex
flex-wrap
items-center;
}

.small {
@apply xs:-space-x-2
space-x-0.5;
}

.medium {
@apply -space-x-2.5;
}
2 changes: 1 addition & 1 deletion apps/site/components/Common/AvatarGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const AvatarGroup: FC<AvatarGroupProps> = ({
);

return (
<div className={styles.avatarGroup}>
<div className={classNames(styles.avatarGroup, styles[size])}>
{renderAvatars.map(({ ...avatar }) => (
<Fragment key={avatar.nickname}>
<Tooltip
Expand Down

0 comments on commit 65c98af

Please sign in to comment.