summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/media-panel
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-08-04 17:17:51 +0200
committerMaze Winther <mazewinther@gmail.com>2025-08-04 17:17:51 +0200
commitf7cd3ebac926f5d1d7ee01a77427a6a7b6399d9d (patch)
tree071bb80f62205bb1dd8ecd804761701a74c542d2 /apps/web/src/components/editor/media-panel
parent9ec5a022520aa3a2d1e18b4e3b4056f2ff5dcd35 (diff)
parent2fcc5e0643a36c040343bc37249e7acbd6caf6de (diff)
downloadopencut-f7cd3ebac926f5d1d7ee01a77427a6a7b6399d9d.tar.gz
Merge branch 'staging' of https://github.com/mazeincoding/AppCut into staging
Diffstat (limited to 'apps/web/src/components/editor/media-panel')
-rw-r--r--apps/web/src/components/editor/media-panel/tabbar.tsx21
1 files changed, 16 insertions, 5 deletions
diff --git a/apps/web/src/components/editor/media-panel/tabbar.tsx b/apps/web/src/components/editor/media-panel/tabbar.tsx
index 8d2e3850..4c3965c4 100644
--- a/apps/web/src/components/editor/media-panel/tabbar.tsx
+++ b/apps/web/src/components/editor/media-panel/tabbar.tsx
@@ -2,6 +2,12 @@
import { cn } from "@/lib/utils";
import { Tab, tabs, useMediaPanelStore } from "./store";
+import { Button } from "@/components/ui/button";
+import { ChevronRight, ChevronLeft } from "lucide-react";
+import { useRef, useState, useEffect } from "react";
+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
+
+
export function TabBar() {
const { activeTab, setActiveTab } = useMediaPanelStore();
@@ -14,15 +20,20 @@ export function TabBar() {
return (
<div
className={cn(
- "flex flex-col gap-0.5 items-center cursor-pointer opacity-100 hover:opacity-75",
- activeTab === tabKey
- ? "text-primary !opacity-100"
- : "text-muted-foreground"
+ "flex z-[100] flex-col gap-0.5 items-center cursor-pointer",
+ activeTab === tabKey ? "text-primary !opacity-100" : "text-muted-foreground"
)}
onClick={() => setActiveTab(tabKey)}
key={tabKey}
>
- <tab.icon className="size-[1.1rem]!" />
+ <Tooltip delayDuration={10}>
+ <TooltipTrigger asChild>
+ <tab.icon className="size-[1.1rem]! opacity-100 hover:opacity-75" />
+ </TooltipTrigger>
+ <TooltipContent side="right" align="center" variant="sidebar" sideOffset={8}>
+ <div className="dark:text-base-gray-950 text-black text-sm font-medium leading-none dark:text-white">{tab.label}</div>
+ </TooltipContent>
+ </Tooltip>
</div>
);
})}