diff --git a/src/replacers/scale.js b/src/replacers/scale.js index 8660c18..2e94df1 100644 --- a/src/replacers/scale.js +++ b/src/replacers/scale.js @@ -5,12 +5,19 @@ const SCALABLE_PROPS = [ 'width', 'height', + 'bottom', 'margin', 'padding', 'fontsize', 'radius', ]; +const SCALABLE_PROPS_EXACT = [ + 'top', + 'left', + 'right', +]; + export default { isScalable, calc, @@ -47,7 +54,8 @@ function isScalableProp(prop) { return false; } prop = prop.toLowerCase(); - return SCALABLE_PROPS.some(p => { + return SCALABLE_PROPS_EXACT.includes(prop) || SCALABLE_PROPS.some(p => { return prop.indexOf(p) >= 0; }); } +