mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
Improvement for #184
This commit is contained in:
parent
e2c171f302
commit
ec23b61e14
1 changed files with 5 additions and 3 deletions
|
@ -170,9 +170,11 @@ export const
|
|||
|
||||
else if ('TABLE' === name && hasAttribute('width')) {
|
||||
value = getAttribute('width');
|
||||
delAttribute('width');
|
||||
oStyle.maxWidth = value + (/^[0-9]+$/.test(value) ? 'px' : '');
|
||||
oStyle.removeProperty('width');
|
||||
if (!value.includes('%')) {
|
||||
delAttribute('width');
|
||||
oStyle.maxWidth = value + 'px';
|
||||
oStyle.removeProperty('width');
|
||||
}
|
||||
}
|
||||
|
||||
else if ('A' === name) {
|
||||
|
|
Loading…
Reference in a new issue