mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 12:24:39 +00:00
fix(ui): enable independent sidebar scrolling in file list page
This commit is contained in:
@@ -3,11 +3,11 @@ import type { UserInfo } from '@/dtos/team'
|
|||||||
import { client } from '@/ui/api/client'
|
import { client } from '@/ui/api/client'
|
||||||
import { Button } from '@/ui/components/ui/button'
|
import { Button } from '@/ui/components/ui/button'
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
DialogDescription,
|
DialogDescription,
|
||||||
DialogHeader,
|
DialogHeader,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
} from '@/ui/components/ui/dialog'
|
} from '@/ui/components/ui/dialog'
|
||||||
import { Separator } from '@/ui/components/ui/separator'
|
import { Separator } from '@/ui/components/ui/separator'
|
||||||
import { formatTimeAgo } from '@/ui/lib/time'
|
import { formatTimeAgo } from '@/ui/lib/time'
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ export default function FileSystemManager({
|
|||||||
onDragStart={handleDragStart}
|
onDragStart={handleDragStart}
|
||||||
onDragEnd={handleDragEnd}
|
onDragEnd={handleDragEnd}
|
||||||
>
|
>
|
||||||
<div className="flex flex-1 flex-col bg-background">
|
<div className="flex flex-1 flex-col bg-background min-h-0">
|
||||||
<div ref={containerRef} className="flex flex-1 overflow-hidden relative">
|
<div ref={containerRef} className="flex flex-1 overflow-hidden relative">
|
||||||
{!isLeftSidebarCollapsed && (
|
{!isLeftSidebarCollapsed && (
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ function RootComponent() {
|
|||||||
</DualSidebar>
|
</DualSidebar>
|
||||||
<div className="flex flex-col flex-1 md:pl-16 overflow-hidden relative">
|
<div className="flex flex-col flex-1 md:pl-16 overflow-hidden relative">
|
||||||
<TopNav />
|
<TopNav />
|
||||||
<main className="flex-1 overflow-y-auto overflow-x-hidden relative flex flex-col">
|
<main className="flex-1 overflow-hidden relative flex flex-col">
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ function TeamPage() {
|
|||||||
const safeMembers = Array.isArray(members) ? members : []
|
const safeMembers = Array.isArray(members) ? members : []
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-4">
|
<div className="flex-1 overflow-y-auto p-4">
|
||||||
<div className="flex flex-wrap items-center justify-between mb-4 gap-4">
|
<div className="flex flex-wrap items-center justify-between mb-4 gap-4">
|
||||||
<h1 className="text-2xl font-bold">Projects</h1>
|
<h1 className="text-2xl font-bold">Projects</h1>
|
||||||
<div className="flex flex-wrap items-center gap-4">
|
<div className="flex flex-wrap items-center gap-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user