Skip to content

Commit 5ca2e04

Browse files
authored
Tables: Handle non-wrapped tables (#350)
1 parent a813cc5 commit 5ca2e04

File tree

3 files changed

+4046
-6
lines changed

3 files changed

+4046
-6
lines changed

assets/css/v2/style.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,16 @@ table {
16761676
}
16771677
}
16781678

1679+
/* Workaround for raw html tables without div wrapper*/
1680+
table.table {
1681+
display: block;
1682+
width: 100%;
1683+
overflow-x: auto;
1684+
}
1685+
16791686
.table {
1687+
overflow-x: auto;
1688+
width: 100%;
16801689
margin: var(--margin-table);
16811690
&.borderless {
16821691
th {
@@ -1704,11 +1713,6 @@ table {
17041713
}
17051714
}
17061715

1707-
.md-table-scroll-x {
1708-
overflow-x: auto;
1709-
width: 100%;
1710-
}
1711-
17121716
table hr {
17131717
color: oklch(var(--color-divider));
17141718
border: none;

0 commit comments

Comments
 (0)