Skip to content

Commit 1243be4

Browse files
committed
Wrap long code in doc tables instead of overflowing the page
The four-column hook and field-type tables pushed the page 104px wider than the viewport at desktop widths, clipping the last column. Long hook names and method signatures are unbreakable tokens, so the tables could not shrink to the content column.
1 parent 19a88ac commit 1243be4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎site-assets/css/style.css‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ a:hover { color: var(--wz-teal-dark); }
7171
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
7272
li { margin-bottom: .3rem; }
7373
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
74+
.content table code, .content table a { overflow-wrap: anywhere; }
7475
th, td { border: 1px solid var(--wz-card-border); padding: 8px 12px; text-align: left; }
7576
th { background: var(--wz-stone); }
7677

@@ -304,8 +305,6 @@ footer a:hover { color: var(--wz-off-white); }
304305
.nav-links { display: none; }
305306
.page-wrap { grid-template-columns: 1fr; padding: 32px 20px 56px; }
306307
.sidebar { position: static; }
307-
.content table { display: block; overflow-x: auto; }
308-
.content code { overflow-wrap: anywhere; }
309308
}
310309

311310
/* ══════════════════════════════════════

0 commit comments

Comments
 (0)