From 64f1931d0fcb6bab3355b71f46c99f80eac34463 Mon Sep 17 00:00:00 2001 From: dolphinlmg Date: Wed, 18 Jan 2023 17:54:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20FE=20GameSlot=20nth-child=20=EB=8C=80?= =?UTF-8?q?=EC=B2=B4=20(Close=20#190)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/GameSlot/index.tsx | 14 +++++------ client/components/GameSlot/style.ts | 35 ++++++++-------------------- 2 files changed, 17 insertions(+), 32 deletions(-) diff --git a/client/components/GameSlot/index.tsx b/client/components/GameSlot/index.tsx index 518da17..bb6dd11 100644 --- a/client/components/GameSlot/index.tsx +++ b/client/components/GameSlot/index.tsx @@ -49,15 +49,15 @@ function GameSlotTable({ version, win, teamId, participants }: GameSlotTableProp - - - - - - - + + + + + + diff --git a/client/components/GameSlot/style.ts b/client/components/GameSlot/style.ts index eb7bc0f..4d782f5 100644 --- a/client/components/GameSlot/style.ts +++ b/client/components/GameSlot/style.ts @@ -137,32 +137,17 @@ export const detailStyle = { th { height: 22px; } - th:nth-child(1) { - text-align: left; - color: ${theme.foreground}; - span { - color: ${win ? theme.blue2 : theme.red2}; - } - width: 22%; - } - th:nth-child(2) { - width: 4.1%; - } - th:nth-child(3) { - width: 6%; - } - th:nth-child(4) { - width: 19%; - } - th:nth-child(5) { - width: 16%; - } - th:nth-child(6) { - width: 16%; - } - th:nth-child(7) { - width: 16%; + `, + thFirst: (theme: Theme, win: boolean) => css` + text-align: left; + color: ${theme.foreground}; + span { + color: ${win ? theme.blue2 : theme.red2}; } + width: 22%; + `, + width: (width: string) => css` + width: ${width}; `, container: css` position: relative;
+ {win ? '승리' : '패배'} ({teamId === 100 ? '블루' : '레드'}팀) KDA빌드준 피해량받은 피해량딜 유형KDA빌드준 피해량받은 피해량딜 유형