Skip to content

Commit 65c98af

Browse files
feat(AvatarGroup): update overflow (#7273)
* feat(AvatarGroupe): update overflow * fix: align
1 parent 116848f commit 65c98af

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

apps/site/components/Common/AvatarGroup/Avatar/index.module.css

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
}
2222

2323
.avatar {
24-
@apply size-8
25-
flex-shrink-0;
24+
@apply size-8;
2625

2726
.wrapper {
2827
@apply max-xs:block
@@ -32,14 +31,9 @@
3231

3332
.small {
3433
@apply xs:size-8
35-
xs:-ml-2
36-
ml-0.5
37-
size-10
38-
first:ml-0;
34+
size-10;
3935
}
4036

4137
.medium {
42-
@apply -ml-2.5
43-
size-10
44-
first:ml-0;
38+
@apply size-10;
4539
}
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
.avatarGroup {
2-
@apply -mb-4
3-
flex
4-
items-center
5-
overflow-x-auto
6-
pb-4;
2+
@apply flex
3+
flex-wrap
4+
items-center;
5+
}
6+
7+
.small {
8+
@apply xs:-space-x-2
9+
space-x-0.5;
10+
}
11+
12+
.medium {
13+
@apply -space-x-2.5;
714
}

apps/site/components/Common/AvatarGroup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const AvatarGroup: FC<AvatarGroupProps> = ({
3535
);
3636

3737
return (
38-
<div className={styles.avatarGroup}>
38+
<div className={classNames(styles.avatarGroup, styles[size])}>
3939
{renderAvatars.map(({ ...avatar }) => (
4040
<Fragment key={avatar.nickname}>
4141
<Tooltip

0 commit comments

Comments
 (0)