aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-04-10 08:33:04 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-04-10 08:33:04 +0200
commitf6d3c05a89332d24da196bccab466af224cd368e (patch)
tree0d5db9d7b05ef95c96d7fad95285d293575350fb /layouts/_default/_markup
parent941dd72ce84576c1778e9ee46d52a765ddec35bc (diff)
Fix tables on mobile
Display block was breaking small tables. Added a hook to keep a block for overflow
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r--layouts/_default/_markup/render-table.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-table.html b/layouts/_default/_markup/render-table.html
new file mode 100644
index 0000000..4f057cc
--- /dev/null
+++ b/layouts/_default/_markup/render-table.html
@@ -0,0 +1,22 @@
+<div class="table-wrapper">
+ <table>
+ <thead>
+ {{ range .THead }}
+ <tr>
+ {{ range . }}
+ <th>{{ .Text }}</th>
+ {{ end }}
+ </tr>
+ {{ end }}
+ </thead>
+ <tbody>
+ {{ range .TBody }}
+ <tr>
+ {{ range . }}
+ <td>{{ .Text }}</td>
+ {{ end }}
+ </tr>
+ {{ end }}
+ </tbody>
+ </table>
+</div>