Setting font-size was too aggressive

This commit is contained in:
the-djmaze 2026-10-26 17:41:10 +01:00
parent 870df2d861
commit 49f94a5650

View file

@ -628,9 +628,10 @@ export const
}
// https://github.com/the-djmaze/snappymail/issues/1082
if (minFontSize > pInt(oStyle.fontSize)) {
// Use getComputedStyle?
if (oStyle.fontSize && minFontSize > pInt(oStyle.fontSize)) {
oStyle.fontSize = minFontSize + "px";
// oStyle.removeProperty('font-size');
// oStyle.setProperty('font-size', minFontSize + "px");
}
// Removes background and color