Skip to content

Commit 26e3680

Browse files
committed
fix table column too long
1 parent 7796683 commit 26e3680

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/coins/[id]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
2121
const platform = coinData.asset_platform_id
2222
? coinData.detail_platforms[coinData.asset_platform_id]
2323
: null;
24+
2425
const network = platform?.geckoterminal_url.split('/')[3] || null;
2526
const contractAddress = platform?.contract_address || null;
2627

@@ -83,6 +84,7 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
8384
cell: (ticker: Ticker) => (
8485
<div className='pair'>
8586
<p>{ticker.base}</p>
87+
<span>/</span>
8688
<p>{ticker.target}</p>
8789
</div>
8890
),

app/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,10 @@
530530
}
531531

532532
.pair {
533-
@apply font-medium h-full flex py-4 pr-5 space-x-2;
533+
@apply font-medium h-full flex gap-2 py-4 pr-5 space-x-2;
534534

535535
p {
536-
@apply truncate max-w-full h-full;
536+
@apply truncate max-w-60 h-full;
537537
}
538538
}
539539

0 commit comments

Comments
 (0)