Fix/border avatargroup (#1956)
* adding border to avatargroup based on the parent background color * fixed border Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
9e89f954e8
commit
b91dfe7595
5 files changed
+13
-7
No files matched your search
@@ -22,8 +22,14 @@ export const AvatarGroup = function AvatarGroup(props: AvatarGroupProps) {
|
||||
{props.items.slice(0, props.truncateAfter).map((item, idx) => {
|
||||
if (item.image != null) {
|
||||
return (
|
||||
<li key={idx} className={classNames("-mr-2 inline-block border-2", props.border)}>
|
||||
<Avatar imageSrc={item.image} title={item.title} alt={item.alt || ""} size={props.size} />
|
||||
<li key={idx} className="-mr-2 inline-block">
|
||||
<Avatar
|
||||
className={props.border}
|
||||
imageSrc={item.image}
|
||||
title={item.title}
|
||||
alt={item.alt || ""}
|
||||
size={props.size}
|
||||
/>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user