Use border-box everywhere and use svelte loop keying

This commit is contained in:
2021-11-27 10:16:32 +01:00
parent a7b98f3b5d
commit b7038be202
14 changed files with 10 additions and 42 deletions

View File

@@ -144,7 +144,7 @@ onMount(get_reporters);
<td>Created</td>
<td></td>
</tr>
{#each reporters as reporter}
{#each reporters as reporter (reporter.email)}
<tr>
<td>{reporter.email}</td>
<td>{reporter.name}</td>

View File

@@ -109,14 +109,14 @@ onMount(() => {
</div>
<h2>Pending</h2>
{#each reports_pending as report}
{#each reports_pending as report (report.id)}
{#if report.status === "pending"}
<AbuseReport report={report} on:refresh={get_reports}/>
{/if}
{/each}
<h2>Resolved</h2>
{#each reports_processed as report}
{#each reports_processed as report (report.id)}
{#if report.status !== "pending"}
<AbuseReport report={report} on:refresh={get_reports}/>
{/if}

View File

@@ -149,7 +149,7 @@ onMount(get_bans);
<td>Offences</td>
<td></td>
</tr>
{#each rows as row}
{#each rows as row (row.address)}
<tr>
<td>{row.address}</td>
<td>{row.reason}</td>