From fe6356ff2b2a9090ac5c6b3a10ba16e8462e15ba Mon Sep 17 00:00:00 2001 From: eoao Date: Sat, 27 Sep 2025 00:22:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=86=85=E5=AE=B9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail-vue/public/_headers | 2 +- mail-vue/public/tinymce/css/index.css | 9 +++++++++ mail-vue/src/components/shadow-html/index.vue | 17 ++++++++++++++++- mail-vue/src/views/content/index.vue | 3 +-- 4 files changed, 27 insertions(+), 4 deletions(-) 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 +