From 7a62e52d608c215b776ec4f23a773b88e0acfb99 Mon Sep 17 00:00:00 2001 From: dahyeon Date: Mon, 8 Jun 2026 05:24:14 -0700 Subject: [PATCH] fix(web): improve mobile team layout --- apps/web/src/pages/MatchDetailPage.tsx | 98 +++++++++++++++++++++++--- 1 file changed, 88 insertions(+), 10 deletions(-) diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx index f52aa961..c9e3301a 100644 --- a/apps/web/src/pages/MatchDetailPage.tsx +++ b/apps/web/src/pages/MatchDetailPage.tsx @@ -184,13 +184,29 @@ function QueueRankCell({ tier?: ApiTierInfo; }) { return ( - + {label} ); } +function PreferredPositionText({ + mainPosition, + subPosition, +}: { + mainPosition: Position; + subPosition: Position; +}) { + return ( + + 주 {positionLabel[mainPosition]} + / + 부 {positionLabel[subPosition]} + + ); +} + function SoloRankPrefix({ tier }: { tier?: ApiTierInfo }) { return ( @@ -214,7 +230,7 @@ function TierCell({ participant }: { participant: ParticipantView }) { const flexTier = tierByQueue(tiers, "RANKED_FLEX_SR"); return ( -
+
@@ -334,17 +350,16 @@ function ParticipantRow({ : participant.mainPosition; admin.onChangePositions(participant.userId, main, next); }; - return ( - + {index + 1}
- + {participant.summonerName} @@ -374,7 +389,10 @@ function ParticipantRow({ {assignedPos ? ( - + ) : admin ? ( <> @@ -452,6 +470,53 @@ function ParticipantRow({ ); } +function TeamParticipantMobileRow({ + participant, +}: { + participant: ParticipantView; +}) { + const { data: ddragon } = useDdragonManifest(); + const location = useLocation(); + const historyBackTo = `${location.pathname}${location.search}${location.hash}`; + + return ( +
+ +
+ +
+
+ + {participant.summonerName} + + + #{participant.tag} + {participant.excluded && ( + + 제외 + + )} + +
+ + + +
+ ); +} + function ParticipantTable({ participants, maxParticipants, @@ -629,7 +694,7 @@ function ParticipantTable({ - + @@ -722,7 +787,20 @@ function TeamCard({ 진행 페이지 -
## 소환사 현재 티어 주 포지션
+
+
+ 소환사 + 현재 티어 + 포지션 +
+ {team.participants.map((participant) => ( + + ))} +
+
@@ -731,7 +809,7 @@ function TeamCard({ - +
## 소환사 현재 티어 포지션