Skip to content

Commit 5b8d6c5

Browse files
committed
Tables: Handle non-wrapped tables
1 parent ec05a77 commit 5b8d6c5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

assets/css/v2/style.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,16 @@ table {
16881688
}
16891689
}
16901690

1691+
/* Workaround for raw html tables without div wrapper*/
1692+
table.table {
1693+
display: block;
1694+
width: 100%;
1695+
overflow-x: auto;
1696+
}
1697+
16911698
.table {
1699+
overflow-x: auto;
1700+
width: 100%;
16921701
margin: var(--margin-table);
16931702
&.borderless {
16941703
th {
@@ -1716,11 +1725,6 @@ table {
17161725
}
17171726
}
17181727

1719-
.md-table-scroll-x {
1720-
overflow-x: auto;
1721-
width: 100%;
1722-
}
1723-
17241728
table hr {
17251729
color: oklch(var(--color-divider));
17261730
border: none;

layouts/partials/table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
{{$theme := .theme | default "bordered"}}
33
{{$dataGrid := cond (eq $variant "narrow") "first-two-thirds" (cond (eq $variant "wide") "wide" "") }}
44

5-
<div class="table md-table-scroll-x {{ $theme }}" data-grid="{{$dataGrid}}">
5+
<div class="table {{ $theme }}" data-grid="{{$dataGrid}}">
66
{{ .content | markdownify }}
77
</div>

0 commit comments

Comments
 (0)