From f281121a4dcdc38d4d901bc2c71c98e407ff6efd Mon Sep 17 00:00:00 2001 From: dsh Date: Mon, 17 Aug 2026 13:21:19 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=93=8D=E5=BA=94=E5=BC=8F=E9=80=82=E9=85=8D=EF=BC=88?= =?UTF-8?q?=E2=89=A4767px=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 左侧文件夹栏在小屏下变为底部导航条:收件箱/草稿箱/已发送/管理后台 + 居中「写信」悬浮圆钮(带未读角标) - 顶栏紧凑化:列表页搜索框自动下移为通栏第二行 - 邮件列表:隐藏正文摘要、缩小头像/时间列、行高加大便于触控,删除按钮常显 - 阅读页/写信页/设置页:内边距与字号收紧,配额条适配 - 管理后台:侧栏改为横向换行导航,表格横向滚动,统计卡两列排布 - 全部模板 viewport 增加 viewport-fit=cover(iOS 安全区),底部导航支持 env(safe-area-inset-bottom) - settings.html 内联样式改为 .settings-main 类以便响应式覆盖 --- internal/web/templates/admin/bans.html | 2 +- internal/web/templates/admin/dashboard.html | 2 +- internal/web/templates/admin/dns_hint.html | 2 +- internal/web/templates/admin/domain_form.html | 2 +- internal/web/templates/admin/domains.html | 2 +- internal/web/templates/admin/mail_view.html | 2 +- internal/web/templates/admin/mails.html | 2 +- internal/web/templates/admin/outbound.html | 2 +- internal/web/templates/admin/user_form.html | 2 +- internal/web/templates/admin/users.html | 2 +- internal/web/templates/banned.html | 2 +- internal/web/templates/base.html | 100 ++++++++++++++++++ internal/web/templates/compose.html | 2 +- internal/web/templates/drafts.html | 2 +- internal/web/templates/inbox.html | 2 +- internal/web/templates/login.html | 2 +- internal/web/templates/sent.html | 2 +- internal/web/templates/settings.html | 4 +- internal/web/templates/view.html | 2 +- 19 files changed, 119 insertions(+), 19 deletions(-) diff --git a/internal/web/templates/admin/bans.html b/internal/web/templates/admin/bans.html index 7c0f9aa..13f71d7 100644 --- a/internal/web/templates/admin/bans.html +++ b/internal/web/templates/admin/bans.html @@ -3,7 +3,7 @@ - + IP黑名单 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/admin/dashboard.html b/internal/web/templates/admin/dashboard.html index 9c0e8eb..b87129e 100644 --- a/internal/web/templates/admin/dashboard.html +++ b/internal/web/templates/admin/dashboard.html @@ -3,7 +3,7 @@ - + 管理后台 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/admin/dns_hint.html b/internal/web/templates/admin/dns_hint.html index d592e56..1f35f4f 100644 --- a/internal/web/templates/admin/dns_hint.html +++ b/internal/web/templates/admin/dns_hint.html @@ -3,7 +3,7 @@ - + DNS配置 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/admin/domain_form.html b/internal/web/templates/admin/domain_form.html index 7d16b0c..f544245 100644 --- a/internal/web/templates/admin/domain_form.html +++ b/internal/web/templates/admin/domain_form.html @@ -3,7 +3,7 @@ - + {{if .isEdit}}编辑域名{{else}}新增域名{{end}} - MailGo {{template "styles" .}} diff --git a/internal/web/templates/admin/domains.html b/internal/web/templates/admin/domains.html index 12abedf..1b78465 100644 --- a/internal/web/templates/admin/domains.html +++ b/internal/web/templates/admin/domains.html @@ -3,7 +3,7 @@ - + 域名管理 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/admin/mail_view.html b/internal/web/templates/admin/mail_view.html index 6caf34f..57fdead 100644 --- a/internal/web/templates/admin/mail_view.html +++ b/internal/web/templates/admin/mail_view.html @@ -3,7 +3,7 @@ - + 查看邮件 - MailGo 管理后台 {{template "styles" .}} {{end}} diff --git a/internal/web/templates/compose.html b/internal/web/templates/compose.html index 10ce25a..3148ab1 100644 --- a/internal/web/templates/compose.html +++ b/internal/web/templates/compose.html @@ -3,7 +3,7 @@ - + 写信 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/drafts.html b/internal/web/templates/drafts.html index 8c1c9b3..92a15dc 100644 --- a/internal/web/templates/drafts.html +++ b/internal/web/templates/drafts.html @@ -3,7 +3,7 @@ - + 草稿箱 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/inbox.html b/internal/web/templates/inbox.html index a05c908..6099935 100644 --- a/internal/web/templates/inbox.html +++ b/internal/web/templates/inbox.html @@ -3,7 +3,7 @@ - + 收件箱 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/login.html b/internal/web/templates/login.html index 9645de9..4c89656 100644 --- a/internal/web/templates/login.html +++ b/internal/web/templates/login.html @@ -3,7 +3,7 @@ - + 登录 - MailGo 邮箱 {{template "styles" .}} diff --git a/internal/web/templates/sent.html b/internal/web/templates/sent.html index 5c2d4db..3c8151d 100644 --- a/internal/web/templates/sent.html +++ b/internal/web/templates/sent.html @@ -3,7 +3,7 @@ - + 已发送 - MailGo {{template "styles" .}} diff --git a/internal/web/templates/settings.html b/internal/web/templates/settings.html index 8881fc0..3388a35 100644 --- a/internal/web/templates/settings.html +++ b/internal/web/templates/settings.html @@ -3,7 +3,7 @@ - + 设置 - MailGo {{template "styles" .}} @@ -11,7 +11,7 @@ {{template "navbar" .}}
{{template "sidebar" .}} -
+
{{if .error}}
{{.error}}
{{end}} {{if .success}}
{{.success}}
{{end}} diff --git a/internal/web/templates/view.html b/internal/web/templates/view.html index dfc4fc6..7cebff0 100644 --- a/internal/web/templates/view.html +++ b/internal/web/templates/view.html @@ -3,7 +3,7 @@ - + 查看邮件 - MailGo {{template "styles" .}}