From c7ab6f972ef483cd0eda8bb4db0398ca340f955f Mon Sep 17 00:00:00 2001 From: Nixevol Date: Fri, 15 May 2026 16:34:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E6=96=B0=E7=89=88?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=9B=BE=E6=A0=87=E5=92=8C=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E9=80=89=E4=B8=AD=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/project_context.md | 7 +++ frontend/src/AppShell.vue | 10 ++-- frontend/src/components/DatabasePanel.vue | 3 +- frontend/src/components/HistoryPanel.vue | 7 +-- frontend/src/components/ScriptPanel.vue | 23 ++++++-- frontend/src/components/SettingsPanel.vue | 9 ++-- frontend/src/composables/pageHeader.ts | 8 +-- frontend/src/styles.css | 65 +++++++++++++++++++---- 8 files changed, 104 insertions(+), 28 deletions(-) diff --git a/docs/project_context.md b/docs/project_context.md index c269215..0ad9334 100644 --- a/docs/project_context.md +++ b/docs/project_context.md @@ -1,5 +1,12 @@ # 项目上下文记录 +## 2026-05-15:优化新版前端图标和侧边栏选中态 + +- `frontend/src/composables/pageHeader.ts` 的页头动作图标从 emoji 字符串改为 Vue 组件,页面按钮统一传入 `@vicons/ionicons5` 图标组件,构建后随前端资源本地打包,适合内网运行。 +- `AppShell.vue` 的折叠侧边栏按钮、主题切换按钮和各页面页头动作已移除 emoji 图标;当前前端源码中仅保留主品牌图标 `📊`。 +- `styles.css` 优化侧边栏菜单选中态:展开态使用浅色背景、品牌色描边和左侧短标记,折叠态收敛为居中的 40px 图标块,避免选中背景过宽。 +- 本次只执行 `npm run build` 做构建验证,未按用户要求启动浏览器或 headless Chrome。 + ## 2026-05-15:修复新版前端夜间模式组件颜色 - 新增 `frontend/src/composables/theme.ts` 作为前端共享主题状态,统一读写 `localStorage.theme` 并同步 `document.documentElement[data-theme]`。 diff --git a/frontend/src/AppShell.vue b/frontend/src/AppShell.vue index 7583381..626fe3a 100644 --- a/frontend/src/AppShell.vue +++ b/frontend/src/AppShell.vue @@ -30,7 +30,7 @@

{{ currentTitle }}

@@ -53,14 +53,14 @@ @click="runHeaderAction(action)" > {{ actionLabel(action) }}