mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-01 11:39:04 +08:00
Simple force email minimum font-size to be 11px for readability
This commit is contained in:
parent
0331631376
commit
45ae35110c
1 changed files with 3 additions and 3 deletions
|
@ -480,12 +480,12 @@ export const MessageUserStore = new class {
|
|||
plain = '',
|
||||
resultHtml = '<pre></pre>';
|
||||
if (isHtml) {
|
||||
resultHtml = json.Html.toString();
|
||||
resultHtml = json.Html.toString().replace(/font-size:\s*[0-9]px/g,'font-size:11px');
|
||||
if (SettingsUserStore.removeColors()) {
|
||||
resultHtml = removeColors(resultHtml);
|
||||
}
|
||||
} else if (json.Plain) {
|
||||
resultHtml = plainToHtml(json.Plain.toString());
|
||||
resultHtml = findEmailAndLinks(plainToHtml(json.Plain.toString()));
|
||||
|
||||
if ((message.isPgpSigned() || message.isPgpEncrypted()) && PgpUserStore.capaOpenPGP()) {
|
||||
plain = pString(json.Plain);
|
||||
|
@ -507,7 +507,7 @@ export const MessageUserStore = new class {
|
|||
|
||||
body = Element.fromHTML('<div id="' + id + '" hidden="" class="b-text-part '
|
||||
+ (isHtml ? 'html' : 'plain') + '">'
|
||||
+ (isHtml ? resultHtml : findEmailAndLinks(resultHtml))
|
||||
+ resultHtml
|
||||
+ '</div>');
|
||||
|
||||
if (isHtml) {
|
||||
|
|
Loading…
Reference in a new issue