mirror of
https://github.com/penpot/penpot.git
synced 2026-04-26 03:38:18 +00:00
🐛 Fix wrong line-height value
This commit is contained in:
parent
7101b94557
commit
db6ca6f905
@ -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…
x
Reference in New Issue
Block a user