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.

Prevent `Switch` `disabledTooltip` from adding height

Tim Wilson606d7671ad65
diff --git a/packages/ui/src/switch.tsx b/packages/ui/src/switch.tsx
index d99e84e46f..217d654c13 100644
--- a/packages/ui/src/switch.tsx
+++ b/packages/ui/src/switch.tsx
@@ -63,7 +63,7 @@ export function Switch({
if (disabledTooltip) {
return (
<Tooltip content={disabledTooltip}>
- <div>{switchRoot}</div>
+ <div className="leading-none">{switchRoot}</div>
</Tooltip>
);
}