fix: stop nft id tag from getting cut off (#5049)

* init

* respond to comments

* fix
This commit is contained in:
lynn 2022-11-01 15:46:50 -04:00 committed by GitHub
parent 619c0a0f46
commit d3a2e14d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 25 deletions

@ -74,9 +74,6 @@ export const detailsName = style([
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
}), }),
{
lineHeight: '24px',
},
]) ])
export const eventDetail = style([ export const eventDetail = style([

@ -259,31 +259,33 @@ const Ranking = ({ rarity, collectionName, rarityVerified }: RankingProps) => {
const rarityProviderLogo = getRarityProviderLogo(rarity.source) const rarityProviderLogo = getRarityProviderLogo(rarity.source)
return ( return (
<MouseoverTooltip <Box>
text={ <MouseoverTooltip
<Row> text={
<Box display="flex" marginRight="4"> <Row>
<img src={rarityProviderLogo} alt="cardLogo" width={16} /> <Box display="flex" marginRight="4">
<img src={rarityProviderLogo} alt="cardLogo" width={16} />
</Box>
<Box width="full" fontSize="14">
{rarityVerified
? `Verified by ${collectionName}`
: `Ranking by ${rarity.source === 'Genie' ? fallbackProvider : rarity.source}`}
</Box>
</Row>
}
placement="top"
>
<Box className={styles.rarityInfo}>
<Box paddingTop="2" paddingBottom="2" display="flex">
{putCommas(rarity.rank)}
</Box> </Box>
<Box width="full" fontSize="14">
{rarityVerified
? `Verified by ${collectionName}`
: `Ranking by ${rarity.source === 'Genie' ? fallbackProvider : rarity.source}`}
</Box>
</Row>
}
placement="top"
>
<Box className={styles.rarityInfo}>
<Box paddingTop="2" paddingBottom="2" display="flex">
{putCommas(rarity.rank)}
</Box>
<Box display="flex" height="16"> <Box display="flex" height="16">
{rarityVerified ? <RarityVerifiedIcon /> : null} {rarityVerified ? <RarityVerifiedIcon /> : null}
</Box>
</Box> </Box>
</Box> </MouseoverTooltip>
</MouseoverTooltip> </Box>
) )
} }