diff --git a/assets/theme-css/tables.css b/assets/theme-css/tables.css index db49eb29..f2d46114 100644 --- a/assets/theme-css/tables.css +++ b/assets/theme-css/tables.css @@ -1,7 +1,5 @@ -/* Make wide tables scroll on their own, since the content column does not. */ -table { - display: block; - width: max-content; +/* Make wide content tables scroll on their own, since the content column does not. */ +.table-wrapper { max-width: 100%; overflow-x: auto; } diff --git a/layouts/_default/_markup/render-table.html b/layouts/_default/_markup/render-table.html new file mode 100644 index 00000000..50310a6b --- /dev/null +++ b/layouts/_default/_markup/render-table.html @@ -0,0 +1,39 @@ +
| + {{- .Text -}} + | + {{- end }} +
|---|
| + {{- .Text -}} + | + {{- end }} +