diff --git a/frontend/src/components/Arena.tsx b/frontend/src/components/Arena.tsx index 91cc7ee..ce7731d 100644 --- a/frontend/src/components/Arena.tsx +++ b/frontend/src/components/Arena.tsx @@ -54,6 +54,10 @@ export default function Arena({ const t = dict(lang); const aShort = teamShort(match.teamA, lang); const bShort = teamShort(match.teamB, lang); + // 한국을 항상 왼쪽에 표시(요청). 상태·투표 제출은 원본 A/B 프레임 그대로, 화면 좌우만 교체. + const flip = match.teamB.code === "KOR" && match.teamA.code !== "KOR"; + const leftShort = flip ? bShort : aShort; + const rightShort = flip ? aShort : bShort; const [outcome, setOutcome] = useState("DRAW"); const [scoreA, setScoreA] = useState(0); const [scoreB, setScoreB] = useState(0); @@ -135,7 +139,7 @@ export default function Arena({ const shareText = useMemo(() => { if (!outcome) return ""; - const me = `${aShort} ${scoreA}-${scoreB} ${bShort}`; + const me = `${leftShort} ${flip ? scoreB : scoreA}-${flip ? scoreA : scoreB} ${rightShort}`; const sameAI = matched.map((m) => m.model).join("·"); if (lang === "en") { return sameAI @@ -217,7 +221,7 @@ export default function Arena({
- {p.scoreA} - {p.scoreB} + {flip ? p.scoreB : p.scoreA} - {flip ? p.scoreA : p.scoreB}
@@ -240,11 +244,17 @@ export default function Arena({
{( - [ - ["TEAM_A_WIN", `${aShort} ${t.win}`], - ["DRAW", t.drawLabel], - ["TEAM_B_WIN", `${bShort} ${t.win}`], - ] as [Outcome, string][] + (flip + ? [ + ["TEAM_B_WIN", `${bShort} ${t.win}`], + ["DRAW", t.drawLabel], + ["TEAM_A_WIN", `${aShort} ${t.win}`], + ] + : [ + ["TEAM_A_WIN", `${aShort} ${t.win}`], + ["DRAW", t.drawLabel], + ["TEAM_B_WIN", `${bShort} ${t.win}`], + ]) as [Outcome, string][] ).map(([val, label]) => (