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
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ export class UserSettingsGeneral extends AbstractViewSettings {
|
|||
['defaultSort', 'useThreads', 'threadAlgorithm',
|
||||
// These use addSetting()
|
||||
'layout', 'messageReadDelay', 'messagesPerPage', 'checkMailInterval',
|
||||
'editorDefaultType', 'editorWysiwyg', 'msgDefaultAction', 'maxBlockquotesLevel',
|
||||
'editorDefaultType', 'editorWysiwyg', 'msgDefaultAction', 'maxBlockquotesLevel', 'minFontSize',
|
||||
// These are in addSettings()
|
||||
'requestReadReceipt', 'requestDsn', 'requireTLS', 'pgpSign', 'pgpEncrypt',
|
||||
'viewHTML', 'viewImages', 'viewImagesWhitelist', 'removeColors', 'allowStyles', 'allowDraftAutosave',
|
||||
|
|
@ -161,6 +161,7 @@ export class UserSettingsGeneral extends AbstractViewSettings {
|
|||
this.addSetting('CheckMailInterval');
|
||||
this.addSetting('Layout');
|
||||
this.addSetting('MaxBlockquotesLevel');
|
||||
this.addSetting('minFontSize');
|
||||
this.addSetting('defaultSort');
|
||||
|
||||
this.addSettings([
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export const SettingsUserStore = new class {
|
|||
allowStyles: 0,
|
||||
collapseBlockquotes: 1,
|
||||
maxBlockquotesLevel: 0,
|
||||
minFontSize: 0,
|
||||
listInlineAttachments: 0,
|
||||
simpleAttachmentsList: 0,
|
||||
useCheckboxesInList: 1,
|
||||
|
|
@ -98,6 +99,7 @@ export const SettingsUserStore = new class {
|
|||
'AllowStyles',
|
||||
'CollapseBlockquotes',
|
||||
'MaxBlockquotesLevel',
|
||||
'minFontSize',
|
||||
'ListInlineAttachments',
|
||||
'simpleAttachmentsList',
|
||||
'UseCheckboxesInList',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue