diff --git a/mail-vue/public/_headers b/mail-vue/public/_headers index a19af4a..3107673 100644 --- a/mail-vue/public/_headers +++ b/mail-vue/public/_headers @@ -1,4 +1,4 @@ /assets/* Cache-Control: public, max-age=31556952, immutable /tinymce/* - Cache-Control: public, max-age=31556952, immutable + Cache-Control: public, max-age=604800, immutable diff --git a/mail-vue/public/tinymce/css/index.css b/mail-vue/public/tinymce/css/index.css index 60c7d00..c32c527 100644 --- a/mail-vue/public/tinymce/css/index.css +++ b/mail-vue/public/tinymce/css/index.css @@ -7,6 +7,15 @@ img { height: auto !important; } +p { + margin: 0 !important; +} + +a { + text-decoration: none; + color: #0E70DF; +} + body { margin: 10px 8px 0 5px !important; font-size: 14px; diff --git a/mail-vue/src/components/shadow-html/index.vue b/mail-vue/src/components/shadow-html/index.vue index 9a26a65..e929157 100644 --- a/mail-vue/src/components/shadow-html/index.vue +++ b/mail-vue/src/components/shadow-html/index.vue @@ -36,13 +36,28 @@ function updateContent() { all: initial; width: 100%; height: 100%; - font-family: 'HarmonyOS', -apple-system, BlinkMacSystemFont, + font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; + line-height: 1.5; color: #13181D; word-break: break-word; } + h1, h2, h3, h4 { + font-size: 18px; + font-weight: 700; + } + + p { + margin: 0; + } + + a { + text-decoration: none; + color: #0E70DF; + } + .shadow-content { background: #FFFFFF; width: fit-content; diff --git a/mail-vue/src/views/content/index.vue b/mail-vue/src/views/content/index.vue index 0cb58a6..71027e2 100644 --- a/mail-vue/src/views/content/index.vue +++ b/mail-vue/src/views/content/index.vue @@ -116,7 +116,6 @@ function toMessage(message) { function formatImage(content) { content = content || ''; const domain = settingStore.settings.r2Domain; - console.log(domain) return content.replace(/{{domain}}/g, toOssDomain(domain) + '/'); } @@ -409,4 +408,4 @@ const handleDelete = () => { } - \ No newline at end of file +