Commit b4bb3d72 authored by Brendan Wong's avatar Brendan Wong Committed by GitHub

fix: text wrap and spacing on mobile TDP (#6909)

fix text wrap and spacing on mobile TDP
parent 3f812f4a
......@@ -45,12 +45,19 @@ import InvalidTokenDetails from './InvalidTokenDetails'
const TokenSymbol = styled.span`
text-transform: uppercase;
color: ${({ theme }) => theme.textSecondary};
margin-left: 8px;
`
const TokenActions = styled.div`
display: flex;
gap: 16px;
color: ${({ theme }) => theme.textSecondary};
`
const TokenTitle = styled.div`
display: flex;
@media screen and (max-width: ${({ theme }) => theme.breakpoint.md}px) {
display: inline;
}
`
function useOnChainToken(address: string | undefined, skip: boolean) {
const token = useTokenFromActiveNetwork(skip || !address ? undefined : address)
......@@ -204,9 +211,10 @@ export default function TokenDetails({
<TokenInfoContainer data-testid="token-info-container">
<TokenNameCell>
<CurrencyLogo currency={detailedToken} size="32px" hideL2Icon={false} />
<TokenTitle>
{detailedToken.name ?? <Trans>Name not found</Trans>}
<TokenSymbol>{detailedToken.symbol ?? <Trans>Symbol not found</Trans>}</TokenSymbol>
</TokenTitle>
</TokenNameCell>
<TokenActions>
<ShareButton currency={detailedToken} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment