mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
Fix <tr> is invalid inside <table>
This commit is contained in:
parent
07d02990ab
commit
c28d254b4d
4 changed files with 49 additions and 37 deletions
|
|
@ -141,12 +141,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<table class="stats-table align-start">
|
<table class="stats-table align-start">
|
||||||
|
<tbody>
|
||||||
{#each statsRows as row}
|
{#each statsRows as row}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="align-start">{row.label}</th>
|
<th class="align-start">{row.label}</th>
|
||||||
<td>{row.value}</td>
|
<td>{row.value}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</div>
|
</div>
|
||||||
<div class="counts-table">
|
<div class="counts-table">
|
||||||
<table>
|
<table>
|
||||||
|
<tbody>
|
||||||
{#each tableData as d, _idx}
|
{#each tableData as d, _idx}
|
||||||
<tr>
|
<tr>
|
||||||
<!-- prettier-ignore -->
|
<!-- 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 class="right">{graphData.totalCards}</td>
|
||||||
<td />
|
<td />
|
||||||
</tr>
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<table dir={direction()}>
|
<table dir={direction()}>
|
||||||
|
<tbody>
|
||||||
{#each tableData as { label, value }}
|
{#each tableData as { label, value }}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="align-end">{label}:</td>
|
<td class="align-end">{label}:</td>
|
||||||
<td class="align-start">{value}</td>
|
<td class="align-start">{value}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
<div class="outer">
|
<div class="outer">
|
||||||
<table class="preview">
|
<table class="preview">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
{#each $columnOptions.slice(1) as { label, shortLabel }}
|
{#each $columnOptions.slice(1) as { label, shortLabel }}
|
||||||
<th>
|
<th>
|
||||||
{shortLabel || label}
|
{shortLabel || label}
|
||||||
</th>
|
</th>
|
||||||
{/each}
|
{/each}
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
{#each $metadata.preview as row}
|
{#each $metadata.preview as row}
|
||||||
<tr>
|
<tr>
|
||||||
{#each row.vals as cell}
|
{#each row.vals as cell}
|
||||||
|
|
@ -25,6 +30,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
{/each}
|
{/each}
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue