Skip to content

Commit c306dce

Browse files
brabojclaude
andauthored
fix: prevent horizontal overflow on mobile (#206)
Add overflow-x: hidden on body and .content, overflow-wrap: break-word on .content, and overflow-x: auto on tables. Fixes the mobile ToC FAB rendering off-screen on pages with wide content. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cba2f2f commit c306dce

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

astro-site/src/styles/global.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ body {
8484
color: var(--color-fg);
8585
background: var(--color-bg);
8686
-webkit-font-smoothing: antialiased;
87+
overflow-x: hidden;
8788
}
8889

8990
a {
@@ -406,6 +407,8 @@ a:hover {
406407
.content {
407408
padding: var(--space-xl) var(--space-2xl);
408409
min-width: 0;
410+
overflow-x: hidden;
411+
overflow-wrap: break-word;
409412
}
410413

411414
/* Right sidebar — tutorial links */
@@ -505,6 +508,8 @@ a:hover {
505508
border-collapse: collapse;
506509
margin-bottom: var(--space-lg);
507510
font-size: var(--font-size-sm);
511+
display: block;
512+
overflow-x: auto;
508513
}
509514

510515
.content caption {

0 commit comments

Comments
 (0)