Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/replacers/scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
});
}