Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update tooltip

Steven Teyf59cdf1e368d
diff --git a/packages/ui/package.json b/packages/ui/package.json
index d0c1347045..1705499354 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/ui",
"description": "UI components for Dub.co",
- "version": "0.0.33",
+ "version": "0.0.35",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/ui/src/tooltip.tsx b/packages/ui/src/tooltip.tsx
index 50774a2071..5d07a1baec 100644
--- a/packages/ui/src/tooltip.tsx
+++ b/packages/ui/src/tooltip.tsx
@@ -68,9 +68,9 @@ export function Tooltip({
className="animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md md:block"
>
{typeof content === "string" ? (
- <div className="block max-w-xs px-4 py-2 text-center text-sm text-gray-700">
+ <span className="block max-w-xs px-4 py-2 text-center text-sm text-gray-700">
{content}
- </div>
+ </span>
) : (
content
)}