Skip to content

Commit

Permalink
fix table width
Browse files Browse the repository at this point in the history
  • Loading branch information
kayceeDev committed Feb 2, 2025
1 parent 41f4216 commit cdaa6fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/dashboard/collateral/Collateral.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ function Collateral({ data, startSum, currentSum, getCurrentSumColor }) {
{startSum ? Number(startSum).toFixed(2) : '0.00'}
</span>
</span>
<span>
<span className="text-gray-500 font-normal">Current sum: </span>
<span className={currentSum > 0 ? 'text-green-500' : getCurrentSumColor()}>
<span className="mr-1">$</span>
<span className='flex '>
<span className="text-gray-500 font-normal mr-2">Current sum: </span>
<span className={`flex ${currentSum > 0 ? 'text-green-500' : getCurrentSumColor()}`}>
<span>$</span>
{currentSum ? Number(currentSum).toFixed(8) : '0.00'}
{currentSum > startSum && currentSum !== 0 && <TrendingUp className="text-green-500 w-6 h-6 ml-2" />}
{currentSum < startSum && currentSum !== 0 && <TrendingDown className="text-red-500 w-6 h-6 ml-2" />}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/position-history/PositionHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function PositionHistory() {
/>
</div>
</div>
<div className="w-full md:max-w-[700px] mx-auto ">
<div className="w-full md:max-w-[650px] mx-auto ">
<div className="text-sm text-white mb-4 pl-2">
<p>Position History</p>
</div>
Expand Down

0 comments on commit cdaa6fa

Please sign in to comment.