From 969d537aee8000d70da672b5b3753716c0ada3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=81=E5=86=9C=E9=98=BF=E6=A5=A0?= Date: Wed, 9 Sep 2026 12:25:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E5=90=8E=E5=8F=B0=E4=BE=A7?= =?UTF-8?q?=E6=A0=8F=E3=80=8C=E6=96=B0=E5=BB=BA=E7=AC=94=E8=AE=B0=E3=80=8D?= =?UTF-8?q?=E4=B8=8A=E7=A7=BB=E8=87=B3=E9=A6=96=E4=BD=8D=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E7=AE=A1=E7=90=86=E5=91=98=E4=BF=A1=E6=81=AF=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E3=80=8C=E7=AB=99=E7=82=B9=E6=89=80=E6=9C=89=E8=80=85?= =?UTF-8?q?=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 侧栏 Menu 与移动端 tabbar 同步调换,编辑页高亮新建入口的逻辑不变。 --- web/src/components/Layout.tsx | 5 ++--- web/src/index.css | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/web/src/components/Layout.tsx b/web/src/components/Layout.tsx index 857b27d..863771d 100644 --- a/web/src/components/Layout.tsx +++ b/web/src/components/Layout.tsx @@ -196,8 +196,8 @@ export function AdminTopbar({ title, children }: { title: string; children?: Rea } const adminNav = [ - { to: '/admin', label: '笔记管理', icon: House, end: true, match: 'exact' as const }, { to: '/admin/notes/new', label: '新建笔记', icon: PenLine, end: false, match: 'prefix' as const }, + { to: '/admin', label: '笔记管理', icon: House, end: true, match: 'exact' as const }, { to: '/admin/trash', label: '回收站', icon: Trash2, end: true, match: 'exact' as const }, { to: '/admin/settings', label: '设置', icon: Settings, end: true, match: 'exact' as const }, ] @@ -245,8 +245,8 @@ function AdminSidebar() { type: 'group', label: '内容', children: [ - { key: 'notes', icon: , label: '笔记管理' }, { key: 'new', icon: , label: '新建笔记' }, + { key: 'notes', icon: , label: '笔记管理' }, ], }, { @@ -266,7 +266,6 @@ function AdminSidebar() { 管 管理员 - 站点所有者 diff --git a/web/src/index.css b/web/src/index.css index a638fd6..9979016 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -1406,10 +1406,6 @@ button.pn-note-back:hover { font-weight: 600; color: var(--sidebar-foreground); } -.pn-admin-user-role { - font-size: 11px; - color: var(--muted-foreground); -} /* 主区 / topbar */ .pn-admin-main { min-width: 0;