mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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 = '',
|
plain = '',
|
||||||
resultHtml = '<pre></pre>';
|
resultHtml = '<pre></pre>';
|
||||||
if (isHtml) {
|
if (isHtml) {
|
||||||
resultHtml = json.Html.toString();
|
resultHtml = json.Html.toString().replace(/font-size:\s*[0-9]px/g,'font-size:11px');
|
||||||
if (SettingsUserStore.removeColors()) {
|
if (SettingsUserStore.removeColors()) {
|
||||||
resultHtml = removeColors(resultHtml);
|
resultHtml = removeColors(resultHtml);
|
||||||
}
|
}
|
||||||
} else if (json.Plain) {
|
} else if (json.Plain) {
|
||||||
resultHtml = plainToHtml(json.Plain.toString());
|
resultHtml = findEmailAndLinks(plainToHtml(json.Plain.toString()));
|
||||||
|
|
||||||
if ((message.isPgpSigned() || message.isPgpEncrypted()) && PgpUserStore.capaOpenPGP()) {
|
if ((message.isPgpSigned() || message.isPgpEncrypted()) && PgpUserStore.capaOpenPGP()) {
|
||||||
plain = pString(json.Plain);
|
plain = pString(json.Plain);
|
||||||
|
|
@ -507,7 +507,7 @@ export const MessageUserStore = new class {
|
||||||
|
|
||||||
body = Element.fromHTML('<div id="' + id + '" hidden="" class="b-text-part '
|
body = Element.fromHTML('<div id="' + id + '" hidden="" class="b-text-part '
|
||||||
+ (isHtml ? 'html' : 'plain') + '">'
|
+ (isHtml ? 'html' : 'plain') + '">'
|
||||||
+ (isHtml ? resultHtml : findEmailAndLinks(resultHtml))
|
+ resultHtml
|
||||||
+ '</div>');
|
+ '</div>');
|
||||||
|
|
||||||
if (isHtml) {
|
if (isHtml) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue