Skip to content

Commit

Permalink
fix(AvatarGroup): pass default size to max avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Sep 7, 2023
1 parent e578b0d commit e49c673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/AvatarGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default defineComponent({

if (max.value !== undefined && index === max.value) {
return h(Avatar, {
size: props.size,
size: props.size || appConfig.ui.avatar.default.size,
text: `+${children.value.length - max.value}`,
class: twJoin(ui.value.ring, ui.value.margin)
})
Expand Down

0 comments on commit e49c673

Please sign in to comment.