Skip to content

Commit

Permalink
fixed tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Aug 24, 2023
1 parent 4a6cd86 commit 4b4a611
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/ui/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function Tooltip({
return (
<TooltipPrimitive.Provider delayDuration={100}>
<TooltipPrimitive.Root>
<TooltipPrimitive.Trigger className="hidden md:inline-flex">
<TooltipPrimitive.Trigger className="hidden md:inline-flex" asChild>
{children}
</TooltipPrimitive.Trigger>
{/*
Expand Down
5 changes: 4 additions & 1 deletion components/app/links/link-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ export default function LinkCard({
</div>
}
>
<Avatar user={user} className="h-4 w-4" />
{/* Without the wrapping div, the Tooltip won't be triggered for some reason */}
<div>
<Avatar user={user} className="h-4 w-4" />
</div>
</Tooltip>
<p></p>
<p className="whitespace-nowrap text-sm text-gray-500">
Expand Down

0 comments on commit 4b4a611

Please sign in to comment.