feat: update mappool display logic; show mappool name conditionally and average star rating in match view
This commit is contained in:
@@ -172,9 +172,6 @@
|
|||||||
<h1 class="text-xl font-700 tracking-tight">{m.name || 'Match'}</h1>
|
<h1 class="text-xl font-700 tracking-tight">{m.name || 'Match'}</h1>
|
||||||
<p class="mt-0.5 text-xs text-text-secondary">
|
<p class="mt-0.5 text-xs text-text-secondary">
|
||||||
Best of {config.bestOf} · First to {winsNeeded}
|
Best of {config.bestOf} · First to {winsNeeded}
|
||||||
{#if m.mappool}
|
|
||||||
· <a href="/mappools/{m.mappool.id}" class="hover:text-accent hover:underline">{m.mappool.name}</a>{mappoolAvgSR() ? ` · avg ★${mappoolAvgSR()}` : ''}
|
|
||||||
{/if}
|
|
||||||
{#if duration}
|
{#if duration}
|
||||||
· {duration}
|
· {duration}
|
||||||
{/if}
|
{/if}
|
||||||
@@ -365,7 +362,16 @@
|
|||||||
<div class="mt-6">
|
<div class="mt-6">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h2 class="text-sm font-600">Mappool</h2>
|
<h2 class="text-sm font-600">
|
||||||
|
{#if m.mappool}
|
||||||
|
<a href="/mappools/{m.mappool.id}" class="hover:text-accent hover:underline">{m.mappool.name}</a>
|
||||||
|
{:else}
|
||||||
|
Mappool
|
||||||
|
{/if}
|
||||||
|
</h2>
|
||||||
|
{#if mappoolAvgSR()}
|
||||||
|
<span class="text-xs text-text-secondary">avg ★{mappoolAvgSR()}</span>
|
||||||
|
{/if}
|
||||||
{#if pickingPhase}
|
{#if pickingPhase}
|
||||||
<span class="rounded bg-blue-500/20 px-2 py-0.5 text-[10px] font-600 text-blue-400">
|
<span class="rounded bg-blue-500/20 px-2 py-0.5 text-[10px] font-600 text-blue-400">
|
||||||
{isMyTurnToPick ? 'Your pick!' : `${expectedPicker?.team.name}'s pick`}
|
{isMyTurnToPick ? 'Your pick!' : `${expectedPicker?.team.name}'s pick`}
|
||||||
|
|||||||
Reference in New Issue
Block a user