blob: 010942f0932e57b93969f576899d5f85dacdb0e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<div class="overflow-x-auto">
<table class="border-collapse w-max min-w-full table-fixed
b-t-2 b-t-solid b-t-[var(--border-color)]"
style="-webkit-overflow-scrolling: touch;">
{{- if .THead }}
<thead>
{{- range .THead }}
<tr class="b-t-1 b-t-solid b-t-[var(--border-color)]">
{{- range . }}
<th
class="max-w-[200px] py-2 px-4 leading-snug whitespace-normal break-words"
{{ with .Alignment }} style="text-align:{{ . }}"{{ end }}
>{{ .Text | safeHTML }}</th>
{{- end }}
</tr>
{{- end }}
</thead>
{{- end }}
<tbody>
{{- range .TBody }}
<tr class="b-t-1 b-t-solid b-t-[var(--border-color)]">
{{- range . }}
<td
class="max-w-[200px] py-2 px-4 leading-snug whitespace-normal break-words"
{{ with .Alignment }} style="text-align:{{ . }}"{{ end }}
>{{ .Text | safeHTML }}</td>
{{- end }}
</tr>
{{- end }}
</tbody>
</table>
</div>
|