Crowd Pick 합 100% 초과 버그 수정 및 투표 오픈을 킥오프 7일 전으로 변경
This commit is contained in:
1 parent
76eafceee8
commit
0a64a220ca
5 files changed
+70
-9
No files matched your search
@@ -542,10 +542,18 @@ export default function Arena({
|
||||
Crowd Pick{" "}
|
||||
<span className="text-[14px] text-[var(--ink-muted)]">{t.crowdSub}</span>
|
||||
</div>
|
||||
{/* 비율은 분포 합 기준(=total 과 동일해야 정상) — 구 데이터 불일치 시에도 100% 이내로 표시 */}
|
||||
<div className="flex h-14 overflow-hidden rounded-2xl border border-[var(--line-d)]">
|
||||
<CrowdSeg team={match.teamA} value={pct(crowd.teamAWin, crowd.total)} tone="a" />
|
||||
<CrowdSeg value={pct(crowd.draw, crowd.total)} tone="draw" />
|
||||
<CrowdSeg team={match.teamB} value={pct(crowd.teamBWin, crowd.total)} tone="b" />
|
||||
{(() => {
|
||||
const sum = crowd.teamAWin + crowd.draw + crowd.teamBWin;
|
||||
return (
|
||||
<>
|
||||
<CrowdSeg team={match.teamA} value={pct(crowd.teamAWin, sum)} tone="a" />
|
||||
<CrowdSeg value={pct(crowd.draw, sum)} tone="draw" />
|
||||
<CrowdSeg team={match.teamB} value={pct(crowd.teamBWin, sum)} tone="b" />
|
||||
</>
|
||||
);
|
||||
})()}
|
||||
</div>
|
||||
<div className="mt-1.5 text-right text-[11px] text-[var(--ink-muted)]">
|
||||
{t.joined(crowd.total.toLocaleString())}
|
||||
|
||||
Reference in new issue
Block a user