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.

Improve responsiveness

Tim Wilson787e8dad4232
diff --git a/packages/embeds/core/src/core.ts b/packages/embeds/core/src/core.ts
index d04ca8529d..53a7457ba3 100644
--- a/packages/embeds/core/src/core.ts
+++ b/packages/embeds/core/src/core.ts
@@ -48,7 +48,8 @@ const CONTAINER_STYLES = (
transform: "translate(-50%, -50%)",
},
}[placement],
- width: "400px",
+ width: "100%",
+ maxWidth: "400px",
zIndex: "9998",
pointerEvents: "none",
});
@@ -56,7 +57,7 @@ const CONTAINER_STYLES = (
const POPUP_STYLES = (
placement: DubWidgetPlacement,
): Partial<CSSStyleDeclaration> => ({
- width: "100%",
+ width: "calc(100% - 32px)",
height: "100dvh",
maxHeight: "500px",
backgroundColor: "white",