This commit is contained in:
the-djmaze 2023-02-20 11:25:20 +01:00
parent 4fb359be59
commit 3e99f760a4

View file

@ -363,10 +363,12 @@ export const
oStyle.width = value.includes('%') ? value : value + 'px';
delAttribute('width');
}
value = oStyle.removeProperty('width');
value = oStyle.width;
if (parseInt(value,10) && !oStyle.maxWidth) {
oStyle.maxWidth = value;
oStyle.width = '100%';
} else if (!value?.includes('%')) {
oStyle.removeProperty('width');
}
// Make height responsive
if (hasAttribute('height')) {