Skip to content

Commit

Permalink
Update Identifierd styles on validators page
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyandreevsky committed Sep 26, 2024
1 parent ab0729b commit 87d7bae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/frontend/src/components/data/Identifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default function Identifier ({ children, ellipsis = true, avatar, styles
if (styles.includes('dim')) return 'dim'
if (styles.includes('highlight-first')) return 'first'
if (styles.includes('highlight-last')) return 'last'
if (styles.includes('highlight-both')) return 'both'
return null
})()

Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/components/data/Identifier.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
font-family: $font-mono;
font-size: 0.75rem;
overflow: hidden;
font-weight: 400;

&--Ellipsis & {
&__SymbolsContainer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ValidatorListItem = ({ validator, loading }) => {
className={'ValidatorListItem__Column ValidatorListItem__Column--Identifier'}
avatar={true}
copyButton={true}
styles={['highlight-first']}
styles={['highlight-both']}
>
{validator.proTxHash}
</Identifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function ValidatorsTotal () {
link={epoch?.data?.bestValidator ? `/validator/${epoch?.data?.bestValidator}` : undefined}
className={'ValidatorsTotalCard__Value'}
>
<Identifier avatar={true} copyButton={true} styles={['highlight-first']}>
<Identifier avatar={true} copyButton={true} styles={['highlight-both']}>
{epoch.data.bestValidator}
</Identifier>
</ValueCard>
Expand Down

0 comments on commit 87d7bae

Please sign in to comment.