fix: 侧边栏菜单区支持上下滚动

This commit is contained in:
freedakgmail
2026-07-30 14:45:07 +08:00
parent 42e4287473
commit 7e463c04ac
+1 -1
View File
@@ -86,7 +86,7 @@ export function Layout({ children, user, onLogout }: LayoutProps) {
<div className="flex h-14 items-center border-b px-4">
<span className="text-lg font-bold"></span>
</div>
<nav className="space-y-4 p-3">
<nav className="space-y-4 overflow-y-auto p-3" style={{ maxHeight: 'calc(100vh - 3.5rem - 5rem)' }}>
{visibleGroups.map((group) => (
<div key={group.title}>
<p className="mb-1 px-3 text-xs font-medium text-muted-foreground">{group.title}</p>