fix: 侧边栏菜单区支持上下滚动
This commit is contained in:
@@ -86,7 +86,7 @@ export function Layout({ children, user, onLogout }: LayoutProps) {
|
|||||||
<div className="flex h-14 items-center border-b px-4">
|
<div className="flex h-14 items-center border-b px-4">
|
||||||
<span className="text-lg font-bold">态势感知系统</span>
|
<span className="text-lg font-bold">态势感知系统</span>
|
||||||
</div>
|
</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) => (
|
{visibleGroups.map((group) => (
|
||||||
<div key={group.title}>
|
<div key={group.title}>
|
||||||
<p className="mb-1 px-3 text-xs font-medium text-muted-foreground">{group.title}</p>
|
<p className="mb-1 px-3 text-xs font-medium text-muted-foreground">{group.title}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user