Skip to content

Commit 8a2ed81

Browse files
Antreesybackportbot[bot]
authored andcommitted
fix(NcAvatar): keep line-height only for 'initials' avatars
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 667d6f1 commit 8a2ed81

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/NcAvatar/NcAvatar.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,11 @@ export default {
492492
},
493493
494494
avatarStyle() {
495-
const style = {
495+
return {
496496
'--size': this.size + 'px',
497-
lineHeight: this.size + 'px',
497+
lineHeight: this.showInitials ? (this.size + 'px') : 0,
498498
fontSize: Math.round(this.size * 0.45) + 'px',
499499
}
500-
return style
501500
},
502501
initialsWrapperStyle() {
503502
const { r, g, b } = usernameToColor(this.userIdentifier)

0 commit comments

Comments
 (0)