impprove frontend

This commit is contained in:
yoan
2024-11-10 15:11:21 +08:00
parent 07b5760986
commit be84f3314f
28 changed files with 3530 additions and 25 deletions

View File

@@ -1,4 +1,5 @@
// components/AddNodePanel.tsx
import { ScrollArea } from "../ui/scroll-area";
import { Sheet, SheetContent, SheetTitle } from "../ui/sheet";
type AddNodePanelProps = {
@@ -14,7 +15,7 @@ const Panel = ({ open, onOpenChange, children, name }: AddNodePanelProps) => {
<SheetContent className="sm:max-w-[640px] p-0">
<SheetTitle className="bg-primary p-4 text-white">{name}</SheetTitle>
<div className="p-10 flex-col space-y-5">{children}</div>
<ScrollArea className="p-10 flex-col space-y-5 h-[90vh]">{children}</ScrollArea>
</SheetContent>
</Sheet>
);