diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-08-31 19:57:50 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-08-31 19:57:50 +0200 |
| commit | 2c5d5dc23437e288d7e6936e0337583dc8dbc782 (patch) | |
| tree | 187942264d1237a8f5c6c0a13bb94c7cc05971f4 /apps/web/src/components/editor/panel-base-view.tsx | |
| parent | 46a74b30ba3a3ff9b499677bb5d63ea3befea56b (diff) | |
| download | opencut-2c5d5dc23437e288d7e6936e0337583dc8dbc782.tar.gz | |
bunch of small improvements
Diffstat (limited to 'apps/web/src/components/editor/panel-base-view.tsx')
| -rw-r--r-- | apps/web/src/components/editor/panel-base-view.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/web/src/components/editor/panel-base-view.tsx b/apps/web/src/components/editor/panel-base-view.tsx index ec01028c..bef4e62c 100644 --- a/apps/web/src/components/editor/panel-base-view.tsx +++ b/apps/web/src/components/editor/panel-base-view.tsx @@ -1,6 +1,7 @@ import { ScrollArea } from "@/components/ui/scroll-area";
import { Separator } from "@/components/ui/separator";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { cn } from "@/lib/utils";
interface PanelBaseViewProps {
children?: React.ReactNode;
@@ -25,7 +26,7 @@ function ViewContent({ }) {
return (
<ScrollArea className="flex-1">
- <div className={`p-5 h-full ${className}`}>{children}</div>
+ <div className={cn("p-5", className)}>{children}</div>
</ScrollArea>
);
}
@@ -40,7 +41,7 @@ export function PanelBaseView({ ref,
}: PanelBaseViewProps) {
return (
- <div className={`h-full flex flex-col ${className}`} ref={ref}>
+ <div className={cn("h-full flex flex-col", className)} ref={ref}>
{!tabs || tabs.length === 0 ? (
<ViewContent className={className}>{children}</ViewContent>
) : (
|
