fix(web): improve compact UI readability
This commit is contained in:
1 parent
12869a7e9e
commit
5ba68ea134
16 files changed
+483
-357
No files matched your search
@@ -25,7 +25,6 @@ import { apiFetch, ApiError } from "../lib/api";
|
||||
import { profileIconUrl } from "../lib/ddragon";
|
||||
import {
|
||||
POSITION_ORDER,
|
||||
positionIcon,
|
||||
positionLabel,
|
||||
sideShortLabel,
|
||||
teamIndexColorClasses,
|
||||
@@ -156,25 +155,6 @@ function buildCaptainSlots(
|
||||
}));
|
||||
}
|
||||
|
||||
function PosBadge({ pos, sub }: { pos: Position; sub?: boolean }) {
|
||||
return (
|
||||
<span
|
||||
className={`inline-flex items-center gap-1.5 text-[11px] font-medium px-1.5 py-0.5 border ${
|
||||
sub
|
||||
? "border-base-content/8 text-base-content/35 bg-transparent"
|
||||
: "border-primary/20 text-primary bg-primary/5"
|
||||
}`}
|
||||
>
|
||||
<img
|
||||
src={positionIcon[pos]}
|
||||
alt=""
|
||||
className="w-3.5 h-3.5 object-contain mr-4px"
|
||||
/>
|
||||
<span>{positionLabel[pos]}</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
function tierByQueue(tiers: ApiTierInfo[], queueType: string) {
|
||||
return tiers.find((tier) => tier.queueType === queueType);
|
||||
}
|
||||
@@ -187,8 +167,10 @@ function QueueRankCell({
|
||||
tier?: ApiTierInfo;
|
||||
}) {
|
||||
return (
|
||||
<span className="grid grid-cols-[24px_auto] items-center gap-1">
|
||||
<span>{label}</span>
|
||||
<span className="grid grid-cols-[27px_auto] items-center gap-1">
|
||||
<span className="text-xs font-medium text-base-content/50">
|
||||
{label}
|
||||
</span>
|
||||
<RankBadge tier={tier} size="sm" tooltipPlacement="left" />
|
||||
</span>
|
||||
);
|
||||
@@ -202,17 +184,17 @@ function PreferredPositionText({
|
||||
subPosition: Position;
|
||||
}) {
|
||||
return (
|
||||
<span className="inline-flex flex-col gap-0.5 text-[11px] font-medium leading-tight text-base-content/55 whitespace-nowrap sm:flex-row sm:items-center sm:gap-1 sm:leading-normal">
|
||||
<span>주 {positionLabel[mainPosition]}</span>
|
||||
<span className="inline-flex flex-col gap-0.5 text-xs font-medium leading-tight text-base-content/55 whitespace-nowrap sm:flex-row sm:items-center sm:gap-1 sm:leading-normal">
|
||||
<span>{positionLabel[mainPosition]}</span>
|
||||
<span className="hidden sm:inline">/</span>
|
||||
<span>부 {positionLabel[subPosition]}</span>
|
||||
<span>{positionLabel[subPosition]}</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
function SoloRankPrefix({ tier }: { tier?: ApiTierInfo }) {
|
||||
return (
|
||||
<span className="inline-flex shrink-0 items-center gap-1 text-[10px] font-black text-base-content/35">
|
||||
<span className="inline-flex shrink-0 items-center gap-1 text-xs font-black text-base-content/35">
|
||||
{/* <span>SOLO</span> */}
|
||||
<RankBadge tier={tier} size="sm" tooltipPlacement="left" />
|
||||
</span>
|
||||
@@ -233,7 +215,7 @@ function TierCell({ participant }: { participant: ParticipantView }) {
|
||||
const flexTier = tierByQueue(tiers, "RANKED_FLEX_SR");
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-start gap-1 text-[10px] font-black text-base-content/35 whitespace-nowrap sm:flex-row sm:items-center sm:gap-3">
|
||||
<div className="flex flex-col items-start gap-1.5 text-xs font-black text-base-content/35 whitespace-nowrap sm:flex-row sm:items-center sm:gap-4">
|
||||
<QueueRankCell label="SOLO" tier={soloTier} />
|
||||
<QueueRankCell label="FLEX" tier={flexTier} />
|
||||
</div>
|
||||
@@ -305,7 +287,7 @@ function PositionSelect({
|
||||
value={value}
|
||||
disabled={disabled}
|
||||
onChange={(event) => onChange(event.target.value as Position)}
|
||||
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 ${
|
||||
className={`h-7 w-16 border bg-base-100 pl-1.5 pr-1 text-xs 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"
|
||||
@@ -357,7 +339,7 @@ function ParticipantRow({
|
||||
<tr
|
||||
className={`${PARTICIPANT_TABLE_ROW_CLASS} hover:bg-base-content/[0.02] transition-colors`}
|
||||
>
|
||||
<td className="hidden py-2 px-3 text-center text-[11px] text-base-content/30 w-8 sm:table-cell">
|
||||
<td className="hidden py-2 px-3 text-center text-xs text-base-content/30 w-8 sm:table-cell">
|
||||
{index + 1}
|
||||
</td>
|
||||
<td className="py-2 px-3">
|
||||
@@ -375,13 +357,13 @@ function ParticipantRow({
|
||||
/>
|
||||
</div>
|
||||
<div className="min-w-0">
|
||||
<span className="font-medium text-[13px] text-base-content block leading-tight break-words group-hover:text-primary transition-colors sm:truncate">
|
||||
<span className="font-medium text-sm text-base-content block leading-tight break-words group-hover:text-primary transition-colors sm:truncate">
|
||||
{participant.summonerName}
|
||||
</span>
|
||||
<span className="inline-flex items-center gap-1 text-[10px] text-base-content/25 leading-tight">
|
||||
<span className="inline-flex items-center gap-1 text-xs text-base-content/25 leading-tight">
|
||||
#{participant.tag}
|
||||
{participant.excluded && (
|
||||
<span className="border border-amber-500/20 bg-amber-500/10 px-1 text-[9px] font-bold text-amber-500">
|
||||
<span className="border border-amber-500/20 bg-amber-500/10 px-1 text-xs font-bold text-amber-500">
|
||||
제외
|
||||
</span>
|
||||
)}
|
||||
@@ -402,19 +384,20 @@ function ParticipantRow({
|
||||
) : admin ? (
|
||||
<>
|
||||
<td className="py-2 px-3">
|
||||
<PositionSelect
|
||||
value={participant.mainPosition}
|
||||
disabled={admin.isUpdating}
|
||||
onChange={handleMainChange}
|
||||
/>
|
||||
</td>
|
||||
<td className="py-2 px-3">
|
||||
<PositionSelect
|
||||
value={participant.subPosition}
|
||||
sub
|
||||
disabled={admin.isUpdating}
|
||||
onChange={handleSubChange}
|
||||
/>
|
||||
<span className="inline-flex items-center gap-1 whitespace-nowrap">
|
||||
<PositionSelect
|
||||
value={participant.mainPosition}
|
||||
disabled={admin.isUpdating}
|
||||
onChange={handleMainChange}
|
||||
/>
|
||||
<span className="text-xs text-base-content/35">/</span>
|
||||
<PositionSelect
|
||||
value={participant.subPosition}
|
||||
sub
|
||||
disabled={admin.isUpdating}
|
||||
onChange={handleSubChange}
|
||||
/>
|
||||
</span>
|
||||
</td>
|
||||
<td className="py-2 px-3 w-20 min-w-[5rem] whitespace-nowrap text-right">
|
||||
{confirmingRemove ? (
|
||||
@@ -423,14 +406,14 @@ function ParticipantRow({
|
||||
type="button"
|
||||
disabled={admin.isRemoving}
|
||||
onClick={() => admin.onRemove(participant.userId)}
|
||||
className="text-[10px] font-bold text-red-400 hover:text-red-300 disabled:opacity-50"
|
||||
className="text-xs font-bold text-red-400 hover:text-red-300 disabled:opacity-50"
|
||||
>
|
||||
{admin.isRemoving ? "제외 중..." : "확인"}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setConfirmingRemove(false)}
|
||||
className="text-[10px] text-base-content/35 hover:text-base-content/60"
|
||||
className="text-xs text-base-content/35 hover:text-base-content/60"
|
||||
>
|
||||
취소
|
||||
</button>
|
||||
@@ -462,14 +445,12 @@ function ParticipantRow({
|
||||
</td>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<td className="py-2 px-3">
|
||||
<PosBadge pos={participant.mainPosition} />
|
||||
</td>
|
||||
<td className="py-2 px-3">
|
||||
<PosBadge pos={participant.subPosition} sub />
|
||||
</td>
|
||||
</>
|
||||
<td className="py-2 px-3">
|
||||
<PreferredPositionText
|
||||
mainPosition={participant.mainPosition}
|
||||
subPosition={participant.subPosition}
|
||||
/>
|
||||
</td>
|
||||
)}
|
||||
</tr>
|
||||
);
|
||||
@@ -500,13 +481,13 @@ function TeamParticipantMobileRow({
|
||||
/>
|
||||
</div>
|
||||
<div className="min-w-0">
|
||||
<span className="block break-words text-[13px] font-medium leading-tight text-base-content transition-colors group-hover:text-primary">
|
||||
<span className="block break-words text-sm font-medium leading-tight text-base-content transition-colors group-hover:text-primary">
|
||||
{participant.summonerName}
|
||||
</span>
|
||||
<span className="inline-flex items-center gap-1 text-[10px] leading-tight text-base-content/25">
|
||||
<span className="inline-flex items-center gap-1 text-xs leading-tight text-base-content/25">
|
||||
#{participant.tag}
|
||||
{participant.excluded && (
|
||||
<span className="border border-amber-500/20 bg-amber-500/10 px-1 text-[9px] font-bold text-amber-500">
|
||||
<span className="border border-amber-500/20 bg-amber-500/10 px-1 text-xs font-bold text-amber-500">
|
||||
제외
|
||||
</span>
|
||||
)}
|
||||
@@ -603,14 +584,14 @@ function ParticipantTable({
|
||||
return (
|
||||
<div className="border border-base-content/10 bg-base-100 overflow-hidden">
|
||||
<div className="px-4 py-2.5 border-b border-base-content/10 bg-base-200/40 flex items-center justify-between gap-3">
|
||||
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
|
||||
<h3 className="text-xs font-bold uppercase tracking-wider text-base-content/40">
|
||||
참가자 ({participants.length}/{maxParticipants})
|
||||
</h3>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onJoin}
|
||||
disabled={!canJoin || joined || isJoining}
|
||||
className="btn btn-primary btn-xs px-4 text-[11px] font-semibold disabled:opacity-40"
|
||||
className="btn btn-primary btn-xs px-4 text-xs font-semibold disabled:opacity-40"
|
||||
>
|
||||
{joined ? "참가 완료" : isJoining ? "신청 중..." : "참가 신청"}
|
||||
</button>
|
||||
@@ -621,7 +602,7 @@ function ParticipantTable({
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setPositionFilter(ALL_PARTICIPANT_FILTER)}
|
||||
className={`inline-flex h-8 w-[3.75rem] items-center justify-center px-1 text-[10px] font-semibold border transition-colors ${
|
||||
className={`inline-flex h-8 w-[3.75rem] items-center justify-center px-1 text-xs font-semibold border transition-colors ${
|
||||
positionFilter === ALL_PARTICIPANT_FILTER
|
||||
? "border-primary/30 bg-primary/5 text-primary"
|
||||
: "border-base-content/10 text-base-content/40 hover:text-base-content/70"
|
||||
@@ -644,7 +625,7 @@ function ParticipantTable({
|
||||
active ? ALL_PARTICIPANT_FILTER : position,
|
||||
)
|
||||
}
|
||||
className={`inline-flex h-8 w-[3.75rem] items-center justify-center px-1 text-[10px] font-semibold border transition-colors ${
|
||||
className={`inline-flex h-8 w-[3.75rem] items-center justify-center px-1 text-xs 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"
|
||||
@@ -669,11 +650,11 @@ function ParticipantTable({
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
<div className="ml-auto flex min-w-[6.5rem] shrink-0 items-center justify-end gap-1 whitespace-nowrap text-[11px] text-base-content/35">
|
||||
<div className="ml-auto flex min-w-[6.5rem] shrink-0 items-center justify-end gap-1 whitespace-nowrap text-xs text-base-content/35">
|
||||
{isFiltered && (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-ghost btn-xs h-8 min-h-8 shrink-0 px-1 text-[11px] text-base-content/40"
|
||||
className="btn btn-ghost btn-xs h-8 min-h-8 shrink-0 px-1 text-xs text-base-content/40"
|
||||
onClick={() => {
|
||||
setPositionFilter(ALL_PARTICIPANT_FILTER);
|
||||
setTierFilter(ALL_PARTICIPANT_FILTER);
|
||||
@@ -692,28 +673,36 @@ function ParticipantTable({
|
||||
<table className="w-full min-w-[40rem] table-fixed text-left">
|
||||
<colgroup>
|
||||
<col className="w-0 sm:w-[5%]" />
|
||||
<col className={canManage ? "w-[25%]" : "w-[37%]"} />
|
||||
<col className={canManage ? "w-[30%]" : "w-[30%]"} />
|
||||
<col className={canManage ? "w-[14%]" : "w-[14%]"} />
|
||||
<col className={canManage ? "w-[14%]" : "w-[14%]"} />
|
||||
<col className={canManage ? "w-[27%]" : "w-[38%]"} />
|
||||
<col className={canManage ? "w-[34%]" : "w-[34%]"} />
|
||||
<col className={canManage ? "w-[22%]" : "w-[23%]"} />
|
||||
{canManage && <col className="w-[12%]" />}
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr className="border-b border-base-content/10 bg-base-200/40 text-[11px] uppercase tracking-wider text-base-content/35 font-semibold">
|
||||
<tr className="border-b border-base-content/10 bg-base-200/40 text-xs uppercase tracking-wider text-base-content/35 font-semibold">
|
||||
<th className="hidden py-2 px-3 w-0 sm:table-cell sm:w-[5%]">
|
||||
#
|
||||
</th>
|
||||
<th className={canManage ? "py-2 px-3 w-[25%]" : "py-2 px-3 w-[37%]"}>
|
||||
<th
|
||||
className={
|
||||
canManage ? "py-2 px-3 w-[27%]" : "py-2 px-3 w-[38%]"
|
||||
}
|
||||
>
|
||||
소환사
|
||||
</th>
|
||||
<th className={canManage ? "py-2 px-3 w-[30%]" : "py-2 px-3 w-[30%]"}>
|
||||
<th
|
||||
className={
|
||||
canManage ? "py-2 px-3 w-[34%]" : "py-2 px-3 w-[34%]"
|
||||
}
|
||||
>
|
||||
현재 티어
|
||||
</th>
|
||||
<th className={canManage ? "py-2 px-3 w-[14%]" : "py-2 px-3 w-[14%]"}>
|
||||
주 포지션
|
||||
</th>
|
||||
<th className={canManage ? "py-2 px-3 w-[14%]" : "py-2 px-3 w-[14%]"}>
|
||||
부 포지션
|
||||
<th
|
||||
className={
|
||||
canManage ? "py-2 px-3 w-[22%]" : "py-2 px-3 w-[23%]"
|
||||
}
|
||||
>
|
||||
포지션
|
||||
</th>
|
||||
{canManage && (
|
||||
<th className="py-2 px-3 w-[12%] min-w-[5rem] whitespace-nowrap text-right">
|
||||
@@ -756,7 +745,7 @@ function ParticipantTable({
|
||||
</div>
|
||||
{participants.length < maxParticipants && (
|
||||
<div className="px-4 py-2.5 border-t border-base-content/5 text-center bg-base-200/20">
|
||||
<span className="text-[11px] text-base-content/25">
|
||||
<span className="text-xs text-base-content/25">
|
||||
{maxParticipants - participants.length}자리 남음
|
||||
</span>
|
||||
</div>
|
||||
@@ -791,20 +780,20 @@ function TeamCard({
|
||||
{team.name}
|
||||
</span>
|
||||
{isWinner && (
|
||||
<span className="inline-flex items-center text-[10px] font-bold px-1.5 py-0.5 bg-amber-500/15 text-amber-400 border border-amber-500/20">
|
||||
<span className="inline-flex items-center text-xs font-bold px-1.5 py-0.5 bg-amber-500/15 text-amber-400 border border-amber-500/20">
|
||||
WIN
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<Link
|
||||
to={`/match/${matchId}/team/${team.teamIndex}`}
|
||||
className="text-[10px] font-bold text-base-content/35 hover:text-primary"
|
||||
className="text-xs font-bold text-base-content/35 hover:text-primary"
|
||||
>
|
||||
진행 페이지
|
||||
</Link>
|
||||
</div>
|
||||
<div className="sm:hidden">
|
||||
<div className="grid grid-cols-[minmax(0,1fr)_64px_58px] gap-x-2 border-b border-base-content/8 bg-base-200/30 px-3 py-2 text-[11px] font-semibold uppercase tracking-wider text-base-content/35">
|
||||
<div className="grid grid-cols-[minmax(0,1fr)_64px_58px] gap-x-2 border-b border-base-content/8 bg-base-200/30 px-3 py-2 text-xs font-semibold uppercase tracking-wider text-base-content/35">
|
||||
<span>소환사</span>
|
||||
<span>현재 티어</span>
|
||||
<span>포지션</span>
|
||||
@@ -824,7 +813,7 @@ function TeamCard({
|
||||
<col className="w-32" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr className="border-b border-base-content/8 bg-base-200/30 text-[11px] uppercase tracking-wider text-base-content/35 font-semibold">
|
||||
<tr className="border-b border-base-content/8 bg-base-200/30 text-xs uppercase tracking-wider text-base-content/35 font-semibold">
|
||||
<th className="hidden py-2 px-3 w-8 sm:table-cell">#</th>
|
||||
<th className="py-2 px-3">소환사</th>
|
||||
<th className="py-2 px-3">현재 티어</th>
|
||||
@@ -856,7 +845,7 @@ function SideCard({
|
||||
return (
|
||||
<div className="border border-base-content/10 bg-base-100 overflow-hidden">
|
||||
<div className="px-4 py-2 border-b border-base-content/10 bg-base-200/40">
|
||||
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
|
||||
<h3 className="text-xs font-bold uppercase tracking-wider text-base-content/40">
|
||||
{title}
|
||||
</h3>
|
||||
</div>
|
||||
@@ -905,13 +894,13 @@ function TournamentCodeDisplay({ slot }: { slot: TournamentCodeSlotView }) {
|
||||
: "border-primary/20 bg-primary/5 text-base-content"
|
||||
}`}
|
||||
>
|
||||
<code className="font-mono text-[12px] font-bold truncate">
|
||||
<code className="font-mono text-xs font-bold truncate">
|
||||
{expired ? "코드 만료" : slot.code}
|
||||
</code>
|
||||
{slot.code && !expired && (
|
||||
<button
|
||||
type="button"
|
||||
className="ml-auto text-[10px] px-1.5 py-0.5 border border-base-content/10 text-base-content/45 hover:text-primary"
|
||||
className="ml-auto text-xs px-1.5 py-0.5 border border-base-content/10 text-base-content/45 hover:text-primary"
|
||||
onClick={copyCode}
|
||||
>
|
||||
{copied ? "복사됨" : "복사"}
|
||||
@@ -919,7 +908,7 @@ function TournamentCodeDisplay({ slot }: { slot: TournamentCodeSlotView }) {
|
||||
)}
|
||||
</div>
|
||||
<div
|
||||
className={`mt-1 text-[10px] ${
|
||||
className={`mt-1 text-xs ${
|
||||
expired || expiringSoon ? "text-amber-500" : "text-base-content/30"
|
||||
}`}
|
||||
>
|
||||
@@ -936,7 +925,7 @@ function TournamentCodeDisplay({ slot }: { slot: TournamentCodeSlotView }) {
|
||||
function TournamentCodeList({ slots }: { slots: TournamentCodeSlotView[] }) {
|
||||
if (slots.length === 0) {
|
||||
return (
|
||||
<div className="border border-dashed border-base-content/10 px-3 py-3 text-[11px] text-base-content/30">
|
||||
<div className="border border-dashed border-base-content/10 px-3 py-3 text-xs text-base-content/30">
|
||||
아직 배정된 코드가 없습니다.
|
||||
</div>
|
||||
);
|
||||
@@ -946,10 +935,10 @@ function TournamentCodeList({ slots }: { slots: TournamentCodeSlotView[] }) {
|
||||
<div className="space-y-2">
|
||||
{slots.map((slot) => (
|
||||
<div key={slot.gameNumber} className="flex items-start gap-2">
|
||||
<span className="text-[11px] font-bold text-base-content/40 w-20 shrink-0 pt-1.5">
|
||||
<span className="text-xs font-bold text-base-content/40 w-20 shrink-0 pt-1.5">
|
||||
{slot.gameNumber}경기
|
||||
{(slot.teamAIndex > 1 || slot.teamBIndex > 2) && (
|
||||
<span className="block text-[10px] font-normal text-base-content/25">
|
||||
<span className="block text-xs font-normal text-base-content/25">
|
||||
{teamIndexLabel(slot.teamAIndex)} vs{" "}
|
||||
{teamIndexLabel(slot.teamBIndex)}
|
||||
</span>
|
||||
@@ -958,7 +947,7 @@ function TournamentCodeList({ slots }: { slots: TournamentCodeSlotView[] }) {
|
||||
{slot.code ? (
|
||||
<TournamentCodeDisplay slot={slot} />
|
||||
) : (
|
||||
<span className="text-[11px] text-base-content/30 border border-dashed border-base-content/10 px-2 py-2 flex-1">
|
||||
<span className="text-xs text-base-content/30 border border-dashed border-base-content/10 px-2 py-2 flex-1">
|
||||
발급 대기 중... 운영자가 코드를 채우면 자동으로 붙습니다.
|
||||
</span>
|
||||
)}
|
||||
@@ -992,7 +981,7 @@ function PoolStatsHint({ enabled }: { enabled: boolean }) {
|
||||
const expiringSoon = statsQuery.data?.expiringSoon ?? 0;
|
||||
|
||||
return (
|
||||
<div className="mt-3 border-t border-base-content/8 pt-3 text-[11px]">
|
||||
<div className="mt-3 border-t border-base-content/8 pt-3 text-xs">
|
||||
<div className={available < 5 ? "text-red-400" : "text-base-content/35"}>
|
||||
풀 잔여 {available}개
|
||||
{expiringSoon > 0 ? ` · 만료 임박 ${expiringSoon}개` : ""}
|
||||
@@ -1167,13 +1156,13 @@ function RoundRobinStandingsTable({ match }: { match: MatchDetailView }) {
|
||||
<h3 className="text-xs font-black text-base-content/65">
|
||||
라운드로빈 순위
|
||||
</h3>
|
||||
<p className="mt-0.5 text-[11px] text-base-content/35">
|
||||
<p className="mt-0.5 text-xs text-base-content/35">
|
||||
{standings.length}팀 · {match.result?.games.length ?? 0}경기 완료
|
||||
</p>
|
||||
</div>
|
||||
{match.result?.winner && (
|
||||
<div className="text-right">
|
||||
<div className="text-[10px] font-bold uppercase tracking-wider text-base-content/35">
|
||||
<div className="text-xs font-bold uppercase tracking-wider text-base-content/35">
|
||||
1위
|
||||
</div>
|
||||
<div className="text-sm font-black text-amber-400">
|
||||
@@ -1184,7 +1173,7 @@ function RoundRobinStandingsTable({ match }: { match: MatchDetailView }) {
|
||||
</div>
|
||||
<div className="mt-4 overflow-x-auto border border-base-content/8">
|
||||
<table className="min-w-[760px] w-full text-xs">
|
||||
<thead className="bg-base-100 text-[11px] text-base-content/45">
|
||||
<thead className="bg-base-100 text-xs text-base-content/45">
|
||||
<tr className="border-b border-base-content/8">
|
||||
<th className="h-9 px-3 text-left font-semibold">팀 순위</th>
|
||||
<th className="h-9 px-3 text-center font-semibold bg-primary/5 text-primary">
|
||||
@@ -1292,7 +1281,7 @@ function MatchResultPanel({ match }: { match: MatchDetailView }) {
|
||||
<div className="text-3xl font-black tabular-nums">
|
||||
{primarySeries.teamAWins}
|
||||
</div>
|
||||
<div className="text-[10px] uppercase tracking-wider mt-0.5 font-semibold">
|
||||
<div className="text-xs uppercase tracking-wider mt-0.5 font-semibold">
|
||||
{resolveMatchTeamName(match, primarySeries.teamAIndex)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1305,13 +1294,13 @@ function MatchResultPanel({ match }: { match: MatchDetailView }) {
|
||||
<div className="text-3xl font-black tabular-nums">
|
||||
{primarySeries.teamBWins}
|
||||
</div>
|
||||
<div className="text-[10px] uppercase tracking-wider mt-0.5 font-semibold">
|
||||
<div className="text-xs uppercase tracking-wider mt-0.5 font-semibold">
|
||||
{resolveMatchTeamName(match, primarySeries.teamBIndex)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div className="text-center mt-3 text-[11px] font-bold text-amber-400 uppercase tracking-wide">
|
||||
<div className="text-center mt-3 text-xs font-bold text-amber-400 uppercase tracking-wide">
|
||||
{match.result.winner
|
||||
? `${match.result.winner} 승리`
|
||||
: `결과 수집 중 · ${match.result.games.length}/${maxGameNumber}경기`}
|
||||
@@ -1417,9 +1406,8 @@ export default function MatchDetailPage() {
|
||||
const [manualRiotMatchId, setManualRiotMatchId] = useState("");
|
||||
const pollTournamentResultMutation =
|
||||
usePollTournamentResult(DEFAULT_COMMUNITY_ID);
|
||||
const collectResultByWindowMutation = useCollectTournamentResultByWindow(
|
||||
DEFAULT_COMMUNITY_ID,
|
||||
);
|
||||
const collectResultByWindowMutation =
|
||||
useCollectTournamentResultByWindow(DEFAULT_COMMUNITY_ID);
|
||||
const collectResultByRiotMatchMutation =
|
||||
useCollectTournamentResultByRiotMatch(DEFAULT_COMMUNITY_ID);
|
||||
|
||||
@@ -1766,7 +1754,7 @@ export default function MatchDetailPage() {
|
||||
{match.title}
|
||||
</h1>
|
||||
<span
|
||||
className={`inline-flex items-center text-[11px] font-semibold px-1.5 py-0.5 border ${si.cls}`}
|
||||
className={`inline-flex items-center text-xs font-semibold px-1.5 py-0.5 border ${si.cls}`}
|
||||
>
|
||||
{si.label}
|
||||
</span>
|
||||
@@ -1783,7 +1771,7 @@ export default function MatchDetailPage() {
|
||||
{match.participants.length}/{match.maxParticipants}명
|
||||
</span>
|
||||
<span className="text-base-content/15">|</span>
|
||||
<span className="inline-flex items-center text-[11px] px-1.5 py-0.5 border border-base-content/10 text-base-content/40">
|
||||
<span className="inline-flex items-center text-xs px-1.5 py-0.5 border border-base-content/10 text-base-content/40">
|
||||
{match.map}
|
||||
</span>
|
||||
</div>
|
||||
@@ -1869,7 +1857,7 @@ export default function MatchDetailPage() {
|
||||
|
||||
{isCheckingPermissions ? (
|
||||
<div className="border border-base-content/10 bg-base-100 p-4">
|
||||
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
|
||||
<h3 className="text-xs font-bold uppercase tracking-wider text-base-content/40">
|
||||
권한 확인 중
|
||||
</h3>
|
||||
<p className="mt-1 text-xs text-base-content/40">
|
||||
@@ -1879,7 +1867,7 @@ export default function MatchDetailPage() {
|
||||
) : canManageAuction ? (
|
||||
<div className="border border-base-content/10 bg-base-100 p-4 space-y-3">
|
||||
<div>
|
||||
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
|
||||
<h3 className="text-xs font-bold uppercase tracking-wider text-base-content/40">
|
||||
경매 시작
|
||||
</h3>
|
||||
<p className="mt-1 text-xs text-base-content/40">
|
||||
@@ -1887,7 +1875,7 @@ export default function MatchDetailPage() {
|
||||
팀장을 지정합니다.
|
||||
</p>
|
||||
{waitingParticipantCount > 0 && (
|
||||
<p className="mt-1 text-[11px] text-amber-500">
|
||||
<p className="mt-1 text-xs text-amber-500">
|
||||
{waitingParticipantCount}명은 10명 단위에 맞지 않아 이번
|
||||
경매에서 제외됩니다.
|
||||
</p>
|
||||
@@ -2024,7 +2012,7 @@ export default function MatchDetailPage() {
|
||||
);
|
||||
}}
|
||||
/>
|
||||
<span className="shrink-0 px-2 text-[11px] text-base-content/30">
|
||||
<span className="shrink-0 px-2 text-xs text-base-content/30">
|
||||
초
|
||||
</span>
|
||||
</div>
|
||||
@@ -2056,11 +2044,11 @@ export default function MatchDetailPage() {
|
||||
);
|
||||
}}
|
||||
/>
|
||||
<span className="shrink-0 px-2 text-[11px] text-base-content/30">
|
||||
<span className="shrink-0 px-2 text-xs text-base-content/30">
|
||||
초
|
||||
</span>
|
||||
</div>
|
||||
<span className="mt-1 block text-[11px] text-base-content/30">
|
||||
<span className="mt-1 block text-xs text-base-content/30">
|
||||
남은 시간이 이 값보다 적을 때 입찰하면 이 시간까지
|
||||
늘어납니다.
|
||||
</span>
|
||||
@@ -2086,7 +2074,7 @@ export default function MatchDetailPage() {
|
||||
</div>
|
||||
{topTierThreshold === "MANUAL" && (
|
||||
<div className="border border-base-content/10 bg-base-200/20 p-3">
|
||||
<div className="mb-2 text-[11px] font-bold uppercase tracking-wider text-base-content/35">
|
||||
<div className="mb-2 text-xs font-bold uppercase tracking-wider text-base-content/35">
|
||||
우선 등장 선수
|
||||
</div>
|
||||
<div className="max-h-48 overflow-y-auto space-y-1">
|
||||
@@ -2206,9 +2194,9 @@ export default function MatchDetailPage() {
|
||||
{match.schedule.map((item, index) => (
|
||||
<li
|
||||
key={index}
|
||||
className="flex items-start gap-2.5 text-[13px]"
|
||||
className="flex items-start gap-2.5 text-sm"
|
||||
>
|
||||
<span className="font-mono text-[11px] text-base-content/30 w-11 shrink-0 pt-px">
|
||||
<span className="font-mono text-xs text-base-content/30 w-11 shrink-0 pt-px">
|
||||
{item.time}
|
||||
</span>
|
||||
<span className="text-base-content/60">{item.label}</span>
|
||||
@@ -2232,7 +2220,7 @@ export default function MatchDetailPage() {
|
||||
<SideCard title="결과 수집">
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<div className="mb-2 text-[11px] font-bold text-base-content/45">
|
||||
<div className="mb-2 text-xs font-bold text-base-content/45">
|
||||
토너먼트 코드
|
||||
</div>
|
||||
<button
|
||||
@@ -2248,11 +2236,11 @@ export default function MatchDetailPage() {
|
||||
</div>
|
||||
|
||||
<div className="border-t border-base-content/8 pt-4">
|
||||
<div className="mb-2 text-[11px] font-bold text-base-content/45">
|
||||
<div className="mb-2 text-xs font-bold text-base-content/45">
|
||||
시간 범위
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<label className="block text-[10px] text-base-content/35">
|
||||
<label className="block text-xs text-base-content/35">
|
||||
시작
|
||||
<input
|
||||
type="datetime-local"
|
||||
@@ -2261,10 +2249,10 @@ export default function MatchDetailPage() {
|
||||
onChange={(event) =>
|
||||
setManualResultStartTime(event.target.value)
|
||||
}
|
||||
className="mt-1 w-full border border-base-content/10 bg-transparent px-2 py-2 text-[11px] text-base-content focus:outline-none focus:border-primary/30"
|
||||
className="mt-1 w-full border border-base-content/10 bg-transparent px-2 py-2 text-xs text-base-content focus:outline-none focus:border-primary/30"
|
||||
/>
|
||||
</label>
|
||||
<label className="block text-[10px] text-base-content/35">
|
||||
<label className="block text-xs text-base-content/35">
|
||||
종료
|
||||
<input
|
||||
type="datetime-local"
|
||||
@@ -2273,7 +2261,7 @@ export default function MatchDetailPage() {
|
||||
onChange={(event) =>
|
||||
setManualResultEndTime(event.target.value)
|
||||
}
|
||||
className="mt-1 w-full border border-base-content/10 bg-transparent px-2 py-2 text-[11px] text-base-content focus:outline-none focus:border-primary/30"
|
||||
className="mt-1 w-full border border-base-content/10 bg-transparent px-2 py-2 text-xs text-base-content focus:outline-none focus:border-primary/30"
|
||||
/>
|
||||
</label>
|
||||
<button
|
||||
@@ -2293,7 +2281,7 @@ export default function MatchDetailPage() {
|
||||
{formatManualCollectSummary(
|
||||
collectResultByWindowMutation.data,
|
||||
) && (
|
||||
<div className="text-[10px] text-base-content/35">
|
||||
<div className="text-xs text-base-content/35">
|
||||
{formatManualCollectSummary(
|
||||
collectResultByWindowMutation.data,
|
||||
)}
|
||||
@@ -2303,7 +2291,7 @@ export default function MatchDetailPage() {
|
||||
</div>
|
||||
|
||||
<div className="border-t border-base-content/8 pt-4">
|
||||
<div className="mb-2 text-[11px] font-bold text-base-content/45">
|
||||
<div className="mb-2 text-xs font-bold text-base-content/45">
|
||||
Riot Match ID
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
@@ -2314,7 +2302,7 @@ export default function MatchDetailPage() {
|
||||
setManualRiotMatchId(event.target.value)
|
||||
}
|
||||
placeholder="KR_1234567890"
|
||||
className="w-full border border-base-content/10 bg-transparent px-2 py-2 text-[11px] text-base-content focus:outline-none focus:border-primary/30"
|
||||
className="w-full border border-base-content/10 bg-transparent px-2 py-2 text-xs text-base-content focus:outline-none focus:border-primary/30"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
@@ -2332,7 +2320,7 @@ export default function MatchDetailPage() {
|
||||
{formatManualCollectSummary(
|
||||
collectResultByRiotMatchMutation.data,
|
||||
) && (
|
||||
<div className="text-[10px] text-base-content/35">
|
||||
<div className="text-xs text-base-content/35">
|
||||
{formatManualCollectSummary(
|
||||
collectResultByRiotMatchMutation.data,
|
||||
)}
|
||||
@@ -2350,9 +2338,9 @@ export default function MatchDetailPage() {
|
||||
{match.prizes.map((prize, index) => (
|
||||
<li
|
||||
key={index}
|
||||
className="flex items-start gap-2 text-[13px] text-base-content/60"
|
||||
className="flex items-start gap-2 text-sm text-base-content/60"
|
||||
>
|
||||
<span className="text-amber-400 shrink-0 text-xs">▸</span>
|
||||
<span className="text-accent shrink-0 text-xs">▸</span>
|
||||
<span>{prize}</span>
|
||||
</li>
|
||||
))}
|
||||
@@ -2366,9 +2354,9 @@ export default function MatchDetailPage() {
|
||||
{match.notices.map((notice, index) => (
|
||||
<li
|
||||
key={index}
|
||||
className="flex items-start gap-2 text-[13px] text-base-content/60"
|
||||
className="flex items-start gap-2 text-sm text-base-content/60"
|
||||
>
|
||||
<span className="text-base-content/20 shrink-0">•</span>
|
||||
<span className="text-info shrink-0 font-bold">•</span>
|
||||
<span>{notice}</span>
|
||||
</li>
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user