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' ...@@ -45,12 +45,19 @@ import InvalidTokenDetails from './InvalidTokenDetails'
const TokenSymbol = styled.span` const TokenSymbol = styled.span`
text-transform: uppercase; text-transform: uppercase;
color: ${({ theme }) => theme.textSecondary}; color: ${({ theme }) => theme.textSecondary};
margin-left: 8px;
` `
const TokenActions = styled.div` const TokenActions = styled.div`
display: flex; display: flex;
gap: 16px; gap: 16px;
color: ${({ theme }) => theme.textSecondary}; 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) { function useOnChainToken(address: string | undefined, skip: boolean) {
const token = useTokenFromActiveNetwork(skip || !address ? undefined : address) const token = useTokenFromActiveNetwork(skip || !address ? undefined : address)
...@@ -204,9 +211,10 @@ export default function TokenDetails({ ...@@ -204,9 +211,10 @@ export default function TokenDetails({
<TokenInfoContainer data-testid="token-info-container"> <TokenInfoContainer data-testid="token-info-container">
<TokenNameCell> <TokenNameCell>
<CurrencyLogo currency={detailedToken} size="32px" hideL2Icon={false} /> <CurrencyLogo currency={detailedToken} size="32px" hideL2Icon={false} />
<TokenTitle>
{detailedToken.name ?? <Trans>Name not found</Trans>} {detailedToken.name ?? <Trans>Name not found</Trans>}
<TokenSymbol>{detailedToken.symbol ?? <Trans>Symbol not found</Trans>}</TokenSymbol> <TokenSymbol>{detailedToken.symbol ?? <Trans>Symbol not found</Trans>}</TokenSymbol>
</TokenTitle>
</TokenNameCell> </TokenNameCell>
<TokenActions> <TokenActions>
<ShareButton currency={detailedToken} /> <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