Skip to content

Commit 3327642

Browse files
committed
scroll tables that overflow instead of breaking words
1 parent 01ccc93 commit 3327642

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/css/body.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.body {
2-
word-wrap: break-word; /* aka overflow-wrap; used when hyphens are disabled or don't do the trick */
2+
word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
33
}
44

55
@media screen and (min-width: 1024px) {

src/css/doc.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@
180180
/* enable table-layout: fixed if you want the table width to be enforced strictly */
181181
/* alternative is to wrap table in div and set overflow-x: auto on the wrapper */
182182
/* table-layout: fixed; */
183+
word-wrap: normal; /* don't do arbitrary word breaking */
184+
display: block;
185+
overflow-x: auto;
186+
max-width: 100%;
183187
}
184188

185189
.doc table.stretch {
@@ -655,8 +659,3 @@
655659
.doc .icon i::after {
656660
hyphens: none;
657661
}
658-
659-
.doc th.tableblock,
660-
.doc td.tableblock {
661-
word-break: break-word; /* overflow-wrap for table cells; gives space higher precedence than hyphen opportunity */
662-
}

src/css/header.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ body {
1414
position: fixed;
1515
top: 0;
1616
width: 100%;
17-
word-wrap: break-word;
1817
z-index: var(--z-index-navbar);
1918
}
2019

0 commit comments

Comments
 (0)