Add labels to the listing
This commit is contained in:
parent
b5b2f97d35
commit
ce03876fed
3 changed files with 11 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
export type ThreadRow = {
|
||||
id: string;
|
||||
title: string;
|
||||
labels: string[];
|
||||
author: Author;
|
||||
replyCount: number;
|
||||
repliers: Author[];
|
||||
|
|
@ -54,6 +55,13 @@
|
|||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
{#if thread.labels.length > 0}
|
||||
<div class="ml-auto flex flex-wrap items-center justify-end gap-1">
|
||||
{#each thread.labels as l}
|
||||
<Tag label={l} />
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue