Skip to content

Commit

Permalink
#168 auto-adapt line height only for maxLines === 1, doesn't look goo…
Browse files Browse the repository at this point in the history
…d for multiple lines
  • Loading branch information
klues committed Jan 22, 2025
1 parent 844fb2d commit 237d4bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
lineHeight: this.lineHeight,
containerSize: size
});
if (this.withImage) {
if (this.withImage && this.maxLines === 1) {
let factor = newFontSize / fontSize;
this.lineHeight /= factor;
}
Expand Down

0 comments on commit 237d4bf

Please sign in to comment.