Skip to content

Commit

Permalink
fix: stake column fill width in staking table
Browse files Browse the repository at this point in the history
  • Loading branch information
amalcaraz committed Nov 3, 2023
1 parent fc2dccb commit 3cbe175
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/common/StakingNodesTable/cmp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const StakingNodesTable = memo(
{
label: 'STAKED',
sortable: true,
width: '100%',
sortBy: (row) => row.total_staked,
render: (row) => (
<StakedCell
Expand Down Expand Up @@ -114,10 +115,7 @@ export const StakingNodesTable = memo(
})
}

return cols.map((col, i) => {
col.width = i === cols.length - 1 ? '100%' : `${70 / cols.length - 1}%`
return col
})
return cols
}, [
account,
accountBalance,
Expand Down

0 comments on commit 3cbe175

Please sign in to comment.