Skip to content

Commit 2fcf75c

Browse files
committed
fix
1 parent 4271bde commit 2fcf75c

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

app/coins/[id]/page.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,16 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
9292
{ticker.market.name}
9393
</Link>
9494
</TableCell>
95-
<TableCell className='exchange-pair'>
96-
<p className='truncate max-w-[100px]'>
97-
{ticker.base}
98-
</p>
99-
/
100-
<p className='truncate max-w-[100px] ml-2'>
101-
{ticker.target}
102-
</p>
95+
<TableCell>
96+
<div className='exchange-pair'>
97+
<p className='truncate max-w-[100px] h-full'>
98+
{ticker.base}
99+
</p>
100+
/
101+
<p className='truncate max-w-[100px] h-full ml-2'>
102+
{ticker.target}
103+
</p>
104+
</div>
103105
</TableCell>
104106
<TableCell className='font-medium'>
105107
{formatPrice(ticker.converted_last.usd)}

app/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@
271271
}
272272

273273
.exchange-link {
274-
@apply py-4 pl-3 block max-w-[110px] truncate;
274+
@apply py-4 pl-3 block w-full max-w-[230px] truncate whitespace-pre-wrap;
275275
}
276276

277277
.exchange-pair {
278-
@apply font-medium flex py-4 pr-5;
278+
@apply font-medium h-full flex py-4 pr-5;
279279
}
280280

281281
.exchange-timestamp {

0 commit comments

Comments
 (0)