diff --git a/src/Avatar.module.css b/src/Avatar.module.css index 0fe6ff5..374024d 100644 --- a/src/Avatar.module.css +++ b/src/Avatar.module.css @@ -6,6 +6,7 @@ justify-content: center; pointer-events: none; font-weight: 600; + overflow: hidden; } .avatar img { @@ -18,13 +19,24 @@ fill: #ffffff; } -.sm { +.avatar span { + padding-top: 1px; +} + +.xs { width: 22px; height: 22px; border-radius: 22px; font-size: 14px; } +.sm { + width: 32px; + height: 32px; + border-radius: 32px; + font-size: 15px; +} + .md { width: 36px; height: 36px; diff --git a/src/Facepile.jsx b/src/Facepile.jsx index 3071d8d..c87fff6 100644 --- a/src/Facepile.jsx +++ b/src/Facepile.jsx @@ -13,7 +13,7 @@ export function Facepile({ className, participants, ...rest }) { {participants.slice(0, 3).map((member, i) => ( 3 && (