mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -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);
|
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;
|
||||||
|
|
Loading…
Reference in a new issue