From 7356ea91d33064d9f3f8088d390b0be3407807f7 Mon Sep 17 00:00:00 2001 From: wuzilong <704541015@qq.com> Date: Tue, 10 Nov 2026 11:12:36 +0800 Subject: [PATCH] fix: hide admin i18n/settings icons and widen portal content. Disable unused header language/settings switches and raise homepage wrap width from 1140px to 1320px for both templates. Co-authored-by: Cursor --- .gitignore | 7 +++++++ admin/src/config/modules/headerBar.ts | 4 ++-- portal/app/assets/home.css | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 02ec36c..f97e592 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,10 @@ coverage/ *.log *.pid target/ + +# personal-dev:begin +/.local/agent/ +# personal-dev:end + +# Agent operation credentials (never commit) +/.local/secrets/ diff --git a/admin/src/config/modules/headerBar.ts b/admin/src/config/modules/headerBar.ts index 3e44f19..a8d502f 100644 --- a/admin/src/config/modules/headerBar.ts +++ b/admin/src/config/modules/headerBar.ts @@ -47,11 +47,11 @@ export const headerBarConfig: HeaderBarFeatureConfig = { description: '聊天功能,提供实时沟通' }, language: { - enabled: true, + enabled: false, description: '多语言切换功能' }, settings: { - enabled: true, + enabled: false, description: '系统设置面板' }, themeToggle: { diff --git a/portal/app/assets/home.css b/portal/app/assets/home.css index f9139d4..ca715ba 100644 --- a/portal/app/assets/home.css +++ b/portal/app/assets/home.css @@ -11,7 +11,7 @@ background: var(--bg); } .data a { color: inherit; text-decoration: none; } - .wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; } + .wrap { width: min(1320px, calc(100% - 32px)); margin: 0 auto; } .list { margin: 0; padding: 0; list-style: none; } .list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .list time { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; } @@ -223,7 +223,7 @@ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 28px; - width: min(1140px, calc(100% - 32px)); + width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 22px; } @@ -374,7 +374,7 @@ display: flex; flex-direction: column; align-items: center; - width: min(1140px, calc(100% - 32px)); + width: min(1320px, calc(100% - 32px)); } #brand .brand-head::before { content: none; } #brand .brand-head > .wrap { width: 100%; }