diff --git a/docs/project_context.md b/docs/project_context.md index 5a5d03d..0ab4e6e 100644 --- a/docs/project_context.md +++ b/docs/project_context.md @@ -1,5 +1,11 @@ # 项目上下文记录 +## 2026-05-18:切换为圆形侧边栏收缩触发器 + +- `frontend/src/AppShell.vue` 的 `n-layout-sider` 收缩触发器从 `show-trigger="bar"` 改为 `show-trigger="arrow-circle"`,恢复为 Naive UI 文档中侧栏右侧居中的圆形箭头按钮样式。 +- 侧边栏收缩状态仍通过 `handleSidebarCollapsed()` 写入 `localStorage.sidebarCollapsed`。 +- 已执行 `npm run build`,构建通过;未启动浏览器或 headless Chrome。 + ## 2026-05-18:恢复侧边栏原生收缩触发器 - `frontend/src/AppShell.vue` 移除顶部标题栏里的自定义汉堡收缩按钮,改用 Naive UI `n-layout-sider` 的 `show-trigger="bar"` 原生触发器。 diff --git a/frontend/src/AppShell.vue b/frontend/src/AppShell.vue index 16bf383..8e6d057 100644 --- a/frontend/src/AppShell.vue +++ b/frontend/src/AppShell.vue @@ -7,7 +7,7 @@ :collapsed="sidebarCollapsed" :collapsed-width="64" :width="220" - show-trigger="bar" + show-trigger="arrow-circle" @update:collapsed="handleSidebarCollapsed" >