diff --git a/ui/src/components/PropertiesPanel.tsx b/ui/src/components/PropertiesPanel.tsx index 75c09474..c289a312 100644 --- a/ui/src/components/PropertiesPanel.tsx +++ b/ui/src/components/PropertiesPanel.tsx @@ -1,59 +1,29 @@ import { X } from "lucide-react"; import { usePanel } from "../context/PanelContext"; import { Button } from "@/components/ui/button"; -import { ResizableSidebarPane } from "./ResizableSidebarPane"; - -const PROPERTIES_PANEL_DEFAULT = 320; -const PROPERTIES_PANEL_MIN = 320; -const PROPERTIES_PANEL_MAX = 640; -const PROPERTIES_PANEL_STORAGE_KEY = "paperclip.properties.width"; +import { ScrollArea } from "@/components/ui/scroll-area"; export function PropertiesPanel() { - const { panelContent, panelLayout, panelVisible, setPanelVisible } = usePanel(); + const { panelContent, panelVisible, setPanelVisible } = usePanel(); if (!panelContent) return null; - const storageKey = panelLayout.storageKey ?? PROPERTIES_PANEL_STORAGE_KEY; - const defaultWidth = panelLayout.defaultWidth ?? PROPERTIES_PANEL_DEFAULT; - const minWidth = panelLayout.minWidth ?? PROPERTIES_PANEL_MIN; - const maxWidth = panelLayout.maxWidth ?? PROPERTIES_PANEL_MAX; - const compactBelowViewport = panelLayout.compactBelowViewport; - const compactMaxWidth = panelLayout.compactMaxWidth; - return ( -