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;