Skip to content

Commit

Permalink
fix: padding in route book
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Dec 8, 2024
1 parent e031206 commit 03e9068
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/pages/trade/ui/route-book.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const RouteBookData = observer(({ bookData }: { bookData?: RouteBookResponse })
<table className='w-full'>
<thead>
<tr className='text-xs text-gray-400'>
<th className='py-2 font-normal text-left'>Price({pair.quoteSymbol})</th>
<th className='py-2 font-normal text-right'>Amount({pair.baseSymbol})</th>
<th className='py-2 font-normal text-right'>Total</th>
<th className='py-2 font-normal text-right'>Route</th>
<th className='px-4 py-2 font-normal text-left'>Price({pair.quoteSymbol})</th>
<th className='px-4 py-2 font-normal text-right'>Amount({pair.baseSymbol})</th>
<th className='px-4 py-2 font-normal text-right'>Total</th>
<th className='px-4 py-2 font-normal text-right'>Route</th>
</tr>
</thead>

Expand Down
10 changes: 6 additions & 4 deletions src/pages/trade/ui/trade-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ export const TradeRow = ({
backgroundImage: `linear-gradient(to right, ${bgColor} ${relativeSize}%, transparent ${relativeSize}%)`,
}}
>
<td className={`${isSell ? 'text-red-400' : 'text-green-400'} text-xs`}>{paddedPrice}</td>
<td className='text-xs text-right text-white'>{trace.amount}</td>
<td className='text-xs text-right text-white'>{trace.total}</td>
<td className='text-xs text-right'>
<td className={`${isSell ? 'text-red-400' : 'text-green-400'} px-4 text-xs`}>
{paddedPrice}
</td>
<td className='text-xs px-4 text-right text-white'>{trace.amount}</td>
<td className='text-xs px-4 text-right text-white'>{trace.total}</td>
<td className='text-xs px-4 text-right'>
<HopCount count={trace.hops.length} />
</td>

Expand Down

0 comments on commit 03e9068

Please sign in to comment.