File tree Expand file tree Collapse file tree 2 files changed +20
-19
lines changed
src/app/pages/ValidatorDetailsPage Expand file tree Collapse file tree 2 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 1+ Inline copy button next to some account links using AdaptiveTrimmer
Original file line number Diff line number Diff 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+
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+
6060 { isTablet ? (
6161 < AdaptiveHighlightedText text = { validator ?. media ?. name } pattern = { highlightPattern } />
6262 ) : (
6363 < HighlightedText text = { validator ?. media ?. name } pattern = { highlightPattern } />
6464 ) }
65+
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-
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 </ >
You can’t perform that action at this time.
0 commit comments