fix(web): stabilize history table columns
This commit is contained in:
1 parent
fe7a482969
commit
170e42098a
1 file changed
+21
-3
@@ -25,7 +25,15 @@ function HistoryRecordsSkeleton() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="hidden md:block border border-base-content/10 overflow-x-auto">
|
<div className="hidden md:block border border-base-content/10 overflow-x-auto">
|
||||||
<table className="w-full text-left">
|
<table className="w-full table-fixed text-left">
|
||||||
|
<colgroup>
|
||||||
|
<col className="w-[156px]" />
|
||||||
|
<col />
|
||||||
|
<col className="w-[88px]" />
|
||||||
|
<col className="w-[132px]" />
|
||||||
|
<col className="w-[72px]" />
|
||||||
|
<col className="w-[116px]" />
|
||||||
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr className="bg-base-200/60 border-b border-base-content/10">
|
<tr className="bg-base-200/60 border-b border-base-content/10">
|
||||||
{['날짜', '내전', '상태', '맵', '참가', '결과'].map((label) => (
|
{['날짜', '내전', '상태', '맵', '참가', '결과'].map((label) => (
|
||||||
@@ -482,7 +490,15 @@ export default function HomePage() {
|
|||||||
<>
|
<>
|
||||||
{/* 데스크톱: 테이블 */}
|
{/* 데스크톱: 테이블 */}
|
||||||
<div className="hidden md:block border border-base-content/10 overflow-x-auto">
|
<div className="hidden md:block border border-base-content/10 overflow-x-auto">
|
||||||
<table className="w-full text-left">
|
<table className="w-full table-fixed text-left">
|
||||||
|
<colgroup>
|
||||||
|
<col className="w-[156px]" />
|
||||||
|
<col />
|
||||||
|
<col className="w-[88px]" />
|
||||||
|
<col className="w-[132px]" />
|
||||||
|
<col className="w-[72px]" />
|
||||||
|
<col className="w-[116px]" />
|
||||||
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr className="bg-base-200/60 border-b border-base-content/10 text-[11px] uppercase tracking-wider text-base-content/40">
|
<tr className="bg-base-200/60 border-b border-base-content/10 text-[11px] uppercase tracking-wider text-base-content/40">
|
||||||
<th className="py-2.5 px-4 font-semibold">날짜</th>
|
<th className="py-2.5 px-4 font-semibold">날짜</th>
|
||||||
@@ -506,7 +522,7 @@ export default function HomePage() {
|
|||||||
<td className="py-2.5 px-4">
|
<td className="py-2.5 px-4">
|
||||||
<Link
|
<Link
|
||||||
to={`/match/${match.id}`}
|
to={`/match/${match.id}`}
|
||||||
className="text-sm font-medium text-base-content hover:text-primary transition-colors"
|
className="block truncate text-sm font-medium text-base-content hover:text-primary transition-colors"
|
||||||
>
|
>
|
||||||
{match.title}
|
{match.title}
|
||||||
</Link>
|
</Link>
|
||||||
@@ -521,9 +537,11 @@ export default function HomePage() {
|
|||||||
{match.participants.length}명
|
{match.participants.length}명
|
||||||
</td>
|
</td>
|
||||||
<td className="py-2.5 px-4 text-xs text-base-content/50 whitespace-nowrap">
|
<td className="py-2.5 px-4 text-xs text-base-content/50 whitespace-nowrap">
|
||||||
|
<span className="block truncate">
|
||||||
{match.result?.winner
|
{match.result?.winner
|
||||||
? `${match.result.winner} 승리`
|
? `${match.result.winner} 승리`
|
||||||
: '-'}
|
: '-'}
|
||||||
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in new issue
Block a user