fix: use proper Tooltip component for sidebar version hover
The native title attribute tooltip was not working reliably. Switched to the project's Radix-based Tooltip component which provides instant, styled tooltips on hover. Fixes PAP-533 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -32,6 +32,7 @@ import { queryKeys } from "../lib/queryKeys";
|
|||||||
import { cn } from "../lib/utils";
|
import { cn } from "../lib/utils";
|
||||||
import { NotFoundPage } from "../pages/NotFound";
|
import { NotFoundPage } from "../pages/NotFound";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { Tooltip, TooltipTrigger, TooltipContent } from "@/components/ui/tooltip";
|
||||||
|
|
||||||
const INSTANCE_SETTINGS_MEMORY_KEY = "paperclip.lastInstanceSettingsPath";
|
const INSTANCE_SETTINGS_MEMORY_KEY = "paperclip.lastInstanceSettingsPath";
|
||||||
|
|
||||||
@@ -298,7 +299,12 @@ export function Layout() {
|
|||||||
<span className="truncate">Documentation</span>
|
<span className="truncate">Documentation</span>
|
||||||
</a>
|
</a>
|
||||||
{health?.version && (
|
{health?.version && (
|
||||||
<span className="px-2 text-xs text-muted-foreground shrink-0" title={`v${health.version}`}>v</span>
|
<Tooltip>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
|
<span className="px-2 text-xs text-muted-foreground shrink-0 cursor-default">v</span>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent>v{health.version}</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
|
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
|
||||||
<Link
|
<Link
|
||||||
@@ -351,7 +357,12 @@ export function Layout() {
|
|||||||
<span className="truncate">Documentation</span>
|
<span className="truncate">Documentation</span>
|
||||||
</a>
|
</a>
|
||||||
{health?.version && (
|
{health?.version && (
|
||||||
<span className="px-2 text-xs text-muted-foreground shrink-0" title={`v${health.version}`}>v</span>
|
<Tooltip>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
|
<span className="px-2 text-xs text-muted-foreground shrink-0 cursor-default">v</span>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent>v{health.version}</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
|
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in New Issue
Block a user