Skip to content

Commit b4e5926

Browse files
lukaw3dcsillag
authored andcommitted
Fix AdaptiveTrimmer in validator title
1 parent 7d19c90 commit b4e5926

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

.changelog/2029.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Inline copy button next to some account links using AdaptiveTrimmer

src/app/pages/ValidatorDetailsPage/ValidatorTitleCard.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ export const ValidatorTitleCard: FC<ValidatorTitleCardProps> = ({
3434
{validator && (
3535
<Box sx={{ display: 'flex' }}>
3636
<ValidatorStatusBadge active={validator.active} inValidatorSet={validator?.in_validator_set} />
37-
<Box sx={{ paddingLeft: 4 }}>
38-
<AccountLink
39-
scope={{ network, layer: 'consensus' }}
40-
address={validator.entity_address}
41-
showOnlyAddress
42-
/>
43-
</Box>
37+
&nbsp;&nbsp;&nbsp;
38+
<AccountLink
39+
scope={{ network, layer: 'consensus' }}
40+
address={validator.entity_address}
41+
showOnlyAddress
42+
/>
4443
<CopyToClipboard value={validator.entity_address} />
4544
</Box>
4645
)}
@@ -51,29 +50,30 @@ export const ValidatorTitleCard: FC<ValidatorTitleCardProps> = ({
5150
<>
5251
{validator && (
5352
<>
54-
<Box sx={{ display: 'flex', alignItems: 'center' }} gap={4}>
53+
<Box sx={{ display: 'flex', alignItems: 'center' }}>
5554
<ValidatorImage
5655
address={validator.entity_address}
5756
name={validator.media?.name}
5857
logotype={validator.media?.logoUrl}
5958
/>
59+
&nbsp;&nbsp;
6060
{isTablet ? (
6161
<AdaptiveHighlightedText text={validator?.media?.name} pattern={highlightPattern} />
6262
) : (
6363
<HighlightedText text={validator?.media?.name} pattern={highlightPattern} />
6464
)}
65+
&nbsp;
66+
<Typography
67+
component="span"
68+
sx={{
69+
color: COLORS.grayMedium,
70+
fontSize: '24px',
71+
fontWeight: 400,
72+
}}
73+
>
74+
({validator.rank})
75+
</Typography>
6576
</Box>
66-
&nbsp;
67-
<Typography
68-
component="span"
69-
sx={{
70-
color: COLORS.grayMedium,
71-
fontSize: '24px',
72-
fontWeight: 400,
73-
}}
74-
>
75-
({validator.rank})
76-
</Typography>
7777
</>
7878
)}
7979
</>

0 commit comments

Comments
 (0)