0
Fork 0
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:
AzazelN28 2024-11-27 12:05:42 +01:00
parent 7101b94557
commit db6ca6f905

View file

@ -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;