Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/benchmarks/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default async function BenchmarkPage({
long-tail query phrases land in the first ~200 words crawlers
weight heavily. Optional - omitted when the YAML doesn't set it. */}
{benchmark.seoIntro && (
<div className="mt-6 max-w-3xl space-y-3 text-[15px] leading-relaxed text-ink-soft">
<div className="mt-6 max-w-3xl space-y-3 text-[15px] leading-relaxed text-ink-soft break-words">
{benchmark.seoIntro
.split(/\n\n+/)
.map((para, i) => (
Expand Down Expand Up @@ -434,7 +434,7 @@ export default async function BenchmarkPage({
/>
</summary>
<div className="pb-4 pt-1">
<p className="text-sm leading-relaxed text-ink-soft max-w-3xl">
<p className="text-sm leading-relaxed text-ink-soft max-w-3xl break-words">
{benchmark.abstract}
</p>
</div>
Expand Down
18 changes: 13 additions & 5 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,18 @@ textarea:focus-visible {
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
/* Safety net: clip any rogue horizontal overflow at the root so a
single wide child (e.g. a min-w table) can never push the whole
page off-screen on mobile. Per-component fixes still target the
intrinsic min-widths so the clip rarely fires. `clip` (not hidden)
avoids creating a scroll container that breaks position: sticky. */
}

/* Safety net: clip any rogue horizontal overflow on BOTH html and body.
iOS Safari + Telegram WKWebView sometimes ignore `overflow-x: clip`
on <html> alone and still let a wide child push the page past 100vw.
Applying it to body too — plus capping body width at 100vw — covers
the WebView edge cases. `clip` (not `hidden`) avoids creating a
scroll container, so position: sticky on the header keeps working. */
html,
body {
overflow-x: clip;
}
body {
max-width: 100vw;
}
Loading