Skip to content

Commit

Permalink
fix: make leaderrboard row has same height
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 25, 2024
1 parent 7b3b131 commit b489444
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/components/leaderboard/common/LeaderboardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ function UserRow({
avatar={profile?.content?.image}
size={32}
/>
<div className='d-flex flex-column' style={{ minWidth: 0 }}>
<div
className='d-flex flex-column justify-content-center'
style={{ minWidth: 0, height: '41px' }}
>
<span
style={{
overflow: 'hidden',
Expand All @@ -156,17 +159,15 @@ function UserRow({
}}
>
{profile?.content?.name || truncateAddress(data.address)}{' '}
{
<MutedSpan>
{isMyAddress ? (
<Tag color='blue' className='FontWeightNormal'>
you
</Tag>
) : (
''
)}
</MutedSpan>
}
<MutedSpan>
{isMyAddress ? (
<Tag color='blue' className='FontWeightNormal'>
you
</Tag>
) : (
''
)}
</MutedSpan>
</span>
<span
className='ColorMuted FontTiny FontWeightNormal'
Expand Down

0 comments on commit b489444

Please sign in to comment.