From e715618fb472c6f9655acfbe7c646a379d7b6e2e Mon Sep 17 00:00:00 2001 From: lestday233 Date: Fri, 16 Oct 2026 18:34:43 +0800 Subject: [PATCH 1/2] Remove profile H1 and tweak admin UI styles Remove the redundant

from the profile template and apply visual refinements to the admin UI: add margins to nav links, adjust hover/selected backgrounds and rounded corners, add button border-radius, and update the --ink color variable. These changes are purely presentational to improve spacing and visual consistency in the admin shell. --- internal/shell/templates/profile.html | 1 - static/wikit-admin.css | 14 ++++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/internal/shell/templates/profile.html b/internal/shell/templates/profile.html index 6ab860d..ccbb4f3 100644 --- a/internal/shell/templates/profile.html +++ b/internal/shell/templates/profile.html @@ -18,7 +18,6 @@
{{.T "profile.personal"}}/{{.T "profile.user"}}/{{.ID}}-{{esc .DisplayName}}
-

{{.T "profile.title"}}

diff --git a/static/wikit-admin.css b/static/wikit-admin.css index d6eeb0e..10dc101 100644 --- a/static/wikit-admin.css +++ b/static/wikit-admin.css @@ -42,7 +42,7 @@ body.admin { padding-top: 66px; } } .admin-shell .menu-box .nav-stacked > li > a { display: flex; align-items: center; gap: 10px; - padding: 7px 12px; + padding: 7px 12px; margin: 2px 2px; text-decoration: none; color: var(--muted); font-size: 14px; border-left: 2px solid transparent; border-radius: 0 var(--rad-sm) var(--rad-sm) 0; @@ -50,8 +50,7 @@ body.admin { padding-top: 66px; } .admin-shell .menu-box .nav-stacked > li > a > i { font-size: 12px; width: 14px; text-align: center; flex: none; } .admin-shell .menu-box .nav-stacked > li > a:hover { color: var(--ink); background: var(--well); } .admin-shell .menu-box .nav-stacked > li.selected > a { - color: var(--ink); background: var(--well); - border-left-color: var(--ink); font-weight: 500; + color: var(--ink); background: var(--well); font-weight: 500; } .admin-shell .menu-box .first-button::after { content: "\203A"; margin-left: auto; @@ -366,7 +365,7 @@ body.admin .system-content .content textarea:focus-visible { .admin-shell .changes-list .rev { color: var(--muted); font-family: var(--font-mono); font-size: 12px; } .wikit-scope.admin-shell { - --ink: #1b1f24; + --ink: #2c323b; --muted: #4a5260; --rule: #c3cad3; --well: #eef2f6; @@ -388,11 +387,10 @@ body.admin .system-content .content #admin-header .btn:hover { border-color: #ff .admin-shell .menu-box { padding: 0 14px 0 10px; } .admin-shell .menu-box .nav-stacked > li > a { color: #2a313b; font-weight: 500; border-left-width: 3px; } .admin-shell .menu-box .nav-stacked > li > a > i { color: var(--muted); } -.admin-shell .menu-box .nav-stacked > li > a:hover { color: var(--ink); background: #e1e7ee; } +.admin-shell .menu-box .nav-stacked > li > a:hover { color: var(--ink); background: #e1e7ee; border-radius: 0.45em; } .admin-shell .menu-box .nav-stacked > li.selected > a { - background: #fff; color: var(--ledger); font-weight: 600; border-left-color: var(--signal); + background: #dbe1ec; color: var(--ledger); font-weight: 600; border-radius: 0.45em; } -.admin-shell .menu-box .nav-stacked > li.selected > a > i { color: var(--signal); } .admin-shell .menu-box .first-button::after { color: var(--quiet); } .admin-shell .menu-box .first-button:hover::after { color: var(--ink); } .admin-shell .menu-box .group-head { border-bottom-color: var(--rule); } @@ -433,7 +431,7 @@ body.admin .system-content .content #admin-header .btn:hover { border-color: #ff body.admin .system-content .content .btn { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; - background: #fff; border-color: var(--quiet); color: var(--ink); + background: #fff; border-color: var(--quiet); border-radius: 0.75em; color: var(--ink); } body.admin .system-content .content .btn:hover { border-color: var(--ledger); background: var(--well); color: var(--ledger); } body.admin .system-content .content .btn-primary { background: var(--ledger); border-color: var(--ledger); color: #fff; font-weight: 600; } From b9f4247f1cb09007c4edda3034fb4ab0cb0df90c Mon Sep 17 00:00:00 2001 From: lestday233 Date: Fri, 16 Oct 2026 18:44:05 +0800 Subject: [PATCH 2/2] Update zh-hans.json --- internal/i18n/locales/zh-hans.json | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/i18n/locales/zh-hans.json b/internal/i18n/locales/zh-hans.json index 080ec0b..0e877e8 100644 --- a/internal/i18n/locales/zh-hans.json +++ b/internal/i18n/locales/zh-hans.json @@ -769,7 +769,6 @@ "profile.tab-name": "用户名", "profile.tab-password": "密码", "profile.tab-posts": "最近发帖", - "profile.title": "个人资料", "profile.unblock": "取消拉黑", "profile.user": "用户", "reset.ask": "忘记密码?请输入电子邮箱地址,我们将向您发送密码重置说明。",