Skip to content

Commit ed840c2

Browse files
authored
fix(ui): avatar overlap (#7834)
fix: avatar alignment
1 parent 0870b2b commit ed840c2

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

packages/ui-components/Common/AvatarGroup/index.module.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,18 @@
44
@apply flex
55
flex-wrap
66
items-center;
7-
8-
&:not(.expandable) {
9-
> span {
10-
@apply ml-0;
11-
}
12-
}
137
}
148

159
.small {
1610
> span {
17-
@apply -ml-2;
11+
@apply -ml-2
12+
first:ml-0;
1813
}
1914
}
2015

2116
.medium {
2217
> span {
23-
@apply -ml-2.5;
18+
@apply -ml-2.5
19+
first:ml-0;
2420
}
2521
}

packages/ui-components/Common/AvatarGroup/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ const AvatarGroup: FC<AvatarGroupProps> = ({
4242
: undefined;
4343

4444
return (
45-
<div
46-
className={classNames(styles.avatarGroup, styles[size], {
47-
[styles.expandable]: avatars.length > limit,
48-
})}
49-
>
45+
<div className={classNames(styles.avatarGroup, styles[size])}>
5046
{renderAvatars.map(avatar => (
5147
<Tooltip
5248
key={avatar.nickname}

0 commit comments

Comments
 (0)