diff --git a/apps/website/src/app/global.css b/apps/website/src/app/global.css index 0f668257..76cafccf 100644 --- a/apps/website/src/app/global.css +++ b/apps/website/src/app/global.css @@ -11,6 +11,16 @@ body { font-family: var(--font-inter); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + overflow-x: hidden; +} + +/* Long unbreakable tokens (e.g. package names like @threadplane/chat, + * file paths like app.config.ts) live inside marketing headings and pull + * the layout wider than the viewport on narrow phones. Allow breaking + * within these tokens to prevent horizontal overflow. */ +h1, h2, h3, h4, h5, h6 { + overflow-wrap: break-word; + word-break: break-word; } /* Scroll-triggered fade-in for server components */ diff --git a/apps/website/src/components/contact/ContactForm.tsx b/apps/website/src/components/contact/ContactForm.tsx index 3715867d..56bfe8f8 100644 --- a/apps/website/src/components/contact/ContactForm.tsx +++ b/apps/website/src/components/contact/ContactForm.tsx @@ -107,6 +107,7 @@ export function ContactForm() { Email setEmail(e.target.value)} @@ -117,6 +118,7 @@ export function ContactForm() { Name (optional) setName(e.target.value)} style={inputStyle} @@ -126,6 +128,7 @@ export function ContactForm() { Company (optional) setCompany(e.target.value)} style={inputStyle} diff --git a/apps/website/src/components/landing/Differentiator.tsx b/apps/website/src/components/landing/Differentiator.tsx index 361e7abf..b8cbfe75 100644 --- a/apps/website/src/components/landing/Differentiator.tsx +++ b/apps/website/src/components/landing/Differentiator.tsx @@ -155,7 +155,7 @@ export function Differentiator() { flexWrap: 'wrap', }} > -
+
setEmail(e.target.value)} diff --git a/apps/website/src/components/pricing/LeadForm.tsx b/apps/website/src/components/pricing/LeadForm.tsx index 5ce38165..c3d81672 100644 --- a/apps/website/src/components/pricing/LeadForm.tsx +++ b/apps/website/src/components/pricing/LeadForm.tsx @@ -220,6 +220,7 @@ export function LeadForm() { setEmail(e.target.value)} diff --git a/apps/website/src/components/shared/Nav.tsx b/apps/website/src/components/shared/Nav.tsx index d0b1e6ab..1a82e0fe 100644 --- a/apps/website/src/components/shared/Nav.tsx +++ b/apps/website/src/components/shared/Nav.tsx @@ -176,7 +176,15 @@ export function Nav() { className="lg:hidden" onClick={() => { setOpen(!open); if (!open) setMobileTab(isDocsPage ? 'docs' : 'site'); }} aria-label={open ? 'Close menu' : 'Open menu'} - style={{ color: tokens.colors.textPrimary }}> + style={{ + color: tokens.colors.textPrimary, + // Expand hit area to >=44x44 without shifting visual layout. + padding: 12, + margin: -12, + display: 'inline-flex', + alignItems: 'center', + justifyContent: 'center', + }}> {open ? : }