From 12869a7e9e178a8e6df89b4dc25a183c046326ee Mon Sep 17 00:00:00 2001 From: dahyeon Date: Mon, 8 Jun 2026 22:52:28 -0700 Subject: [PATCH] fix(web): stabilize participant filter table --- apps/web/src/pages/MatchDetailPage.tsx | 70 ++++++++++++++++---------- 1 file changed, 43 insertions(+), 27 deletions(-) diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx index c9e3301a..dae36414 100644 --- a/apps/web/src/pages/MatchDetailPage.tsx +++ b/apps/web/src/pages/MatchDetailPage.tsx @@ -88,6 +88,9 @@ const PARTICIPANT_TIER_LABELS: Record = { UNRANKED: "언랭크", }; +const PARTICIPANT_TABLE_ROW_CLASS = + "h-12 border-b border-base-content/5 last:border-b-0"; + function captainSlotKey(slot: CaptainSelectionSlot) { return String(slot.teamIndex); } @@ -302,7 +305,7 @@ function PositionSelect({ value={value} disabled={disabled} onChange={(event) => onChange(event.target.value as Position)} - className={`h-7 border bg-base-100 pl-1.5 pr-1 text-[11px] font-medium focus:border-primary/30 focus:outline-none disabled:opacity-50 ${ + className={`h-7 w-16 border bg-base-100 pl-1.5 pr-1 text-[11px] font-medium focus:border-primary/30 focus:outline-none disabled:opacity-50 ${ sub ? "border-base-content/10 text-base-content/45" : "border-primary/20 text-primary" @@ -351,7 +354,9 @@ function ParticipantRow({ admin.onChangePositions(participant.userId, main, next); }; return ( - + {index + 1} @@ -611,18 +616,18 @@ function ParticipantTable({
-
+
{POSITION_ORDER.map((position) => { const active = positionFilter === position; @@ -639,27 +644,20 @@ function ParticipantTable({ active ? ALL_PARTICIPANT_FILTER : position, ) } - className={`inline-flex h-8 items-center gap-1 px-2 text-[11px] font-semibold border transition-colors ${ + className={`inline-flex h-8 w-[3.75rem] items-center justify-center px-1 text-[10px] font-semibold border transition-colors ${ active ? "border-primary/30 bg-primary/5 text-primary" : "border-base-content/10 text-base-content/40 hover:text-base-content/70" }`} > - - - {positionLabel[position]} - + {positionLabel[position]} ({count}) ); })}
-
- - {filteredParticipants.length}/{participants.length}명 - +
{isFiltered && ( )} + + {filteredParticipants.length}/{participants.length}명 +
- +
+ + + + + + + {canManage && } + - - - - - + + + + + {canManage && ( - )}
#소환사현재 티어주 포지션부 포지션 + # + + 소환사 + + 현재 티어 + + 주 포지션 + + 부 포지션 + + 관리