mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03: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';
|
oStyle.width = value.includes('%') ? value : value + 'px';
|
||||||
delAttribute('width');
|
delAttribute('width');
|
||||||
}
|
}
|
||||||
value = oStyle.removeProperty('width');
|
value = oStyle.width;
|
||||||
if (parseInt(value,10) && !oStyle.maxWidth) {
|
if (parseInt(value,10) && !oStyle.maxWidth) {
|
||||||
oStyle.maxWidth = value;
|
oStyle.maxWidth = value;
|
||||||
oStyle.width = '100%';
|
oStyle.width = '100%';
|
||||||
|
} else if (!value?.includes('%')) {
|
||||||
|
oStyle.removeProperty('width');
|
||||||
}
|
}
|
||||||
// Make height responsive
|
// Make height responsive
|
||||||
if (hasAttribute('height')) {
|
if (hasAttribute('height')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue