0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -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); const styleValueAsNumber = parseFloat(styleValue);
if (styleName === "font-size") { if (styleName === "font-size") {
return getStyleFontSize(styleValueAsNumber, styleValue); return getStyleFontSize(styleValueAsNumber, styleValue);
} else if (styleName === "line-height") {
return styleValue
} }
if (Number.isNaN(styleValueAsNumber)) { if (Number.isNaN(styleValueAsNumber)) {
return styleValue; return styleValue;