mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix wrong line-height value
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user