Skip to content

Commit 10f31a5

Browse files
authored
Merge pull request #457 from gofiber/codex/2025-08-23-06-36-19
Enable horizontal scrolling for wide tables on mobile
2 parents 9f4d13d + f828d0c commit 10f31a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/css/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ table {
7575
display: table;
7676
}
7777

78+
@media (max-width: 768px) {
79+
/* Allow wide tables to scroll horizontally on narrow screens */
80+
table {
81+
width: auto;
82+
display: block;
83+
overflow-x: auto;
84+
-webkit-overflow-scrolling: touch;
85+
}
86+
}
87+
7888
.margin-between > *:not(:first-child) {
7989
margin-top: 1rem;
8090
}

0 commit comments

Comments
 (0)