mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
🐛 Fix wrong line-height value
This commit is contained in:
parent
7101b94557
commit
db6ca6f905
1 changed files with 2 additions and 0 deletions
|
@ -210,6 +210,8 @@ export function getStyleFromDeclaration(style, styleName, styleUnit) {
|
|||
const styleValueAsNumber = parseFloat(styleValue);
|
||||
if (styleName === "font-size") {
|
||||
return getStyleFontSize(styleValueAsNumber, styleValue);
|
||||
} else if (styleName === "line-height") {
|
||||
return styleValue
|
||||
}
|
||||
if (Number.isNaN(styleValueAsNumber)) {
|
||||
return styleValue;
|
||||
|
|
Loading…
Reference in a new issue