Fix <tr> is invalid inside <table>

This commit is contained in:
Abdo 2024-07-10 09:54:11 +03:00
parent 07d02990ab
commit c28d254b4d
4 changed files with 49 additions and 37 deletions

View file

@ -141,12 +141,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</script>
<table class="stats-table align-start">
<tbody>
{#each statsRows as row}
<tr>
<th class="align-start">{row.label}</th>
<td>{row.value}</td>
</tr>
{/each}
</tbody>
</table>
<style>

View file

@ -58,6 +58,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</div>
<div class="counts-table">
<table>
<tbody>
{#each tableData as d, _idx}
<tr>
<!-- prettier-ignore -->
@ -82,6 +83,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<td class="right">{graphData.totalCards}</td>
<td />
</tr>
</tbody>
</table>
</div>
</div>

View file

@ -12,12 +12,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<div>
<table dir={direction()}>
<tbody>
{#each tableData as { label, value }}
<tr>
<td class="align-end">{label}:</td>
<td class="align-start">{value}</td>
</tr>
{/each}
</tbody>
</table>
</div>

View file

@ -13,11 +13,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<div class="outer">
<table class="preview">
<thead>
<tr>
{#each $columnOptions.slice(1) as { label, shortLabel }}
<th>
{shortLabel || label}
</th>
{/each}
</tr>
</thead>
<tbody>
{#each $metadata.preview as row}
<tr>
{#each row.vals as cell}
@ -25,6 +30,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{/each}
</tr>
{/each}
</tbody>
</table>
</div>