From 90d00a817b4be40273802cc544fd5b8f5c32d900 Mon Sep 17 00:00:00 2001 From: jwkim Date: Mon, 22 Jun 2026 10:21:13 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=9C=EA=B5=AD=20=EA=B2=BD=EA=B8=B0=20?= =?UTF-8?q?=ED=95=9C=EA=B5=AD=20=EC=A2=8C=EC=B8=A1=20=EA=B3=A0=EC=A0=95,?= =?UTF-8?q?=20=EA=B5=AD=EA=B0=80=EB=AA=85=20=ED=95=9C=EA=B8=80=20=ED=86=B5?= =?UTF-8?q?=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Arena.tsx | 57 +++++++++++++++++------ frontend/src/components/Hero.tsx | 12 ++++- frontend/src/components/MatchupHUD.tsx | 20 +++++--- frontend/src/components/ScheduleBoard.tsx | 52 +++++++++++++++------ frontend/src/pages/MatchDetail.tsx | 8 +++- 5 files changed, 111 insertions(+), 38 deletions(-) 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]) => (