feat: refactor match display; reorganize mappool and time display for clarity
This commit is contained in:
@@ -340,13 +340,10 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<span class="text-sm font-600">{p2?.team.name ?? '?'}</span>
|
<span class="text-sm font-600">{p2?.team.name ?? '?'}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="mt-0.5 text-xs text-text-secondary">
|
<p class="mt-0.5 text-xs text-text-secondary">{m.name ? `${m.name} · ` : ''}BO{config.bestOf} · {timeAgo(m.finishedAt ?? m.createdAt)}</p>
|
||||||
{m.name ? `${m.name} · ` : ''}BO{config.bestOf}
|
|
||||||
{#if m.mappool}
|
{#if m.mappool}
|
||||||
· <a href='/mappools/{m.mappool.id}' onclick={(e) => e.stopPropagation()} class='hover:text-accent hover:underline'>{m.mappool.name}</a>{#if avgSR(m.mappool)} {" "} (<span>{avgSR(m.mappool)}★</span>){/if}
|
<p class="text-xs text-text-secondary"><a href='/mappools/{m.mappool.id}' onclick={(e) => e.stopPropagation()} class='hover:text-accent hover:underline'>{m.mappool.name}</a>{#if avgSR(m.mappool)} ({avgSR(m.mappool)}★){/if}</p>
|
||||||
{/if}
|
{/if}
|
||||||
· {timeAgo(m.finishedAt ?? m.createdAt)}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if m.state === 'FINISHED' && m.winnerId}
|
{#if m.state === 'FINISHED' && m.winnerId}
|
||||||
|
|||||||
@@ -286,17 +286,10 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<span class="text-sm font-600">{p2?.team.name ?? '?'}</span>
|
<span class="text-sm font-600">{p2?.team.name ?? '?'}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="mt-0.5 text-xs text-text-secondary">
|
<p class="mt-0.5 text-xs text-text-secondary">{m.name ? `${m.name} · ` : ''}BO{config.bestOf}{#if m.finishedAt} · {timeAgo(m.finishedAt)}{:else if m.createdAt} · {timeAgo(m.createdAt)}{/if}</p>
|
||||||
{m.name ? `${m.name} · ` : ''}BO{config.bestOf}
|
|
||||||
{#if m.mappool}
|
{#if m.mappool}
|
||||||
· <a href='/mappools/{m.mappool.id}' onclick={(e) => e.stopPropagation()} class='hover:text-accent hover:underline'>{m.mappool.name}</a>{#if avgSR(m.mappool)} {" "} (<span>{avgSR(m.mappool)}★</span>){/if}
|
<p class="text-xs text-text-secondary"><a href='/mappools/{m.mappool.id}' onclick={(e) => e.stopPropagation()} class='hover:text-accent hover:underline'>{m.mappool.name}</a>{#if avgSR(m.mappool)} ({avgSR(m.mappool)}★){/if}</p>
|
||||||
{/if}
|
{/if}
|
||||||
{#if m.finishedAt}
|
|
||||||
· {timeAgo(m.finishedAt)}
|
|
||||||
{:else if m.createdAt}
|
|
||||||
· {timeAgo(m.createdAt)}
|
|
||||||
{/if}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Winner indicator -->
|
<!-- Winner indicator -->
|
||||||
|
|||||||
Reference in New Issue
Block a user