Skip to content

Commit 4afae6a

Browse files
committed
fix(docs): fixed mobile horizontal overflow on tables
- overflow:hidden is ignored on display:table elements per CSS spec - changed to display:block + overflow-x:auto so tables scroll within themselves on mobile - affects all doc pages globally, not just methodology
1 parent 0678a83 commit 4afae6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/src/styles/custom.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ header.header {
9090
border-radius: 8px;
9191
}
9292

93-
/* better table styling */
93+
/* better table styling - display:block so overflow-x actually works */
94+
/* (overflow is ignored on display:table per CSS spec) */
9495
table {
9596
border-radius: 8px;
96-
overflow: hidden;
97+
display: block;
98+
overflow-x: auto;
99+
-webkit-overflow-scrolling: touch;
97100
}
98101

99102
table th {

0 commit comments

Comments
 (0)