From 196f02c979453b516864a05f28765e9273305d42 Mon Sep 17 00:00:00 2001 From: Mohamed Aziz Mejri Date: Thu, 4 Dec 2025 02:23:09 +0100 Subject: [PATCH] feat: add tooltip on project hover to display full project name (#1887) closes #1885 --- ## Summary by cubic Added a tooltip to sidebar app items to show the full project name on hover. Improves readability for long names without changing interactions. - **New Features** - Wrapped the app row with TooltipProvider/Trigger and show TooltipContent on the right with the full name. - Click and favorite actions remain unchanged. Written for commit 274c250a27f244f926dcc30413dc1c3db62ca93a. Summary will update automatically on new commits. --- src/components/appItem.tsx | 97 ++++++++++++++++++++++---------------- 1 file changed, 56 insertions(+), 41 deletions(-) diff --git a/src/components/appItem.tsx b/src/components/appItem.tsx index 16d3cf0..b9a9bbe 100644 --- a/src/components/appItem.tsx +++ b/src/components/appItem.tsx @@ -3,6 +3,12 @@ import { Star } from "lucide-react"; import { SidebarMenuItem } from "@/components/ui/sidebar"; import { Button } from "@/components/ui/button"; import { App } from "@/ipc/ipc_types"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "@/components/ui/tooltip"; type AppItemProps = { app: App; @@ -21,47 +27,56 @@ export function AppItem({ }: AppItemProps) { return ( -
- - -
+ + + +
+ + +
+
+ +

{app.name}

+
+
+
); }