mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-24 22:25:09 +03:00
Improved font-size handling to prevent issue #1082
This commit is contained in:
parent
c154d23cfe
commit
8667af700d
43 changed files with 62 additions and 7 deletions
|
|
@ -232,6 +232,7 @@ export const
|
|||
detectHiddenImages = true, // !!SettingsGet('try_to_detect_hidden_images'),
|
||||
|
||||
bqLevel = parseInt(SettingsUserStore.maxBlockquotesLevel()),
|
||||
minFontSize = parseInt(SettingsUserStore.minFontSize()),
|
||||
|
||||
result = {
|
||||
hasExternals: false,
|
||||
|
|
@ -625,12 +626,13 @@ export const
|
|||
if (urls_broken.length) {
|
||||
setAttribute('data-x-style-broken-urls', JSON.stringify(urls_broken));
|
||||
}
|
||||
/*
|
||||
|
||||
// https://github.com/the-djmaze/snappymail/issues/1082
|
||||
if (11 > pInt(oStyle.fontSize)) {
|
||||
oStyle.removeProperty('font-size');
|
||||
if (minFontSize > pInt(oStyle.fontSize)) {
|
||||
oStyle.fontSize = minFontSize + "px";
|
||||
// oStyle.removeProperty('font-size');
|
||||
}
|
||||
*/
|
||||
|
||||
// Removes background and color
|
||||
// Many e-mails incorrectly only define one, not both
|
||||
// And in dark theme mode this kills the readability
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue