mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Resolve #953
This commit is contained in:
parent
4fb359be59
commit
3e99f760a4
1 changed files with 3 additions and 1 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue