Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(style): set box-sizing on the card so its padding stops widening it past its declared width

nirholasc26bf8ddfe3f
diff --git a/public/feature-discovery.css b/public/feature-discovery.css
index 213b4d72e..c36d59358 100644
--- a/public/feature-discovery.css
+++ b/public/feature-discovery.css
@@ -23,6 +23,19 @@
border-radius: var(--radius-pill, 999px);
}
+/* Pages that load style.css inherit its global `* { box-sizing: border-box }`.
+ The cv-page design system and the other pages that skip style.css set it on
+ their own container only, so there the card's declared width is a CONTENT
+ width: its 16px padding and 1px border push the border-box 34px wider, which
+ hangs the card 22px off the left edge of a 320px viewport, and the
+ full-width CTA overflows the card by 28px. Scoped to this layer's own
+ subtree so it can never change a host page's boxes. */
+.tws-disc-card,
+.tws-disc-card *,
+.tws-disc-new {
+ box-sizing: border-box;
+}
+
.tws-disc-card {
position: fixed;
right: 18px;
diff --git a/public/style.css b/public/style.css
index 9aecd6213..cb0e6887b 100644
--- a/public/style.css
+++ b/public/style.css
@@ -11137,6 +11137,19 @@ a.pill--devnet:hover {
border-radius: var(--radius-pill, 999px);
}
+/* Pages that load style.css inherit its global `* { box-sizing: border-box }`.
+ The cv-page design system and the other pages that skip style.css set it on
+ their own container only, so there the card's declared width is a CONTENT
+ width: its 16px padding and 1px border push the border-box 34px wider, which
+ hangs the card 22px off the left edge of a 320px viewport, and the
+ full-width CTA overflows the card by 28px. Scoped to this layer's own
+ subtree so it can never change a host page's boxes. */
+.tws-disc-card,
+.tws-disc-card *,
+.tws-disc-new {
+ box-sizing: border-box;
+}
+
/* Discovery card — shared by the passive prompt and contextual cross-links. */
.tws-disc-card {
position: fixed;