Skip to content

Commit

Permalink
fix mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlapham committed Feb 25, 2021
1 parent c08e545 commit 0e9acae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const StyledCard = styled(Link)`
max-width: initial;
}
@media screen and (max-width: 414px) {
width: 100%;
width: 320px;
box-sizing: border-box;
}
:hover {
Expand Down Expand Up @@ -51,6 +51,10 @@ const TokensListed = styled.span`
line-height: 150%;
`

const NameText = styled.h3`
word-wrap: break-word;
`

function getLogoURL(logoURI) {
if (logoURI?.startsWith('ipfs://')) {
return `https://ipfs.io/ipfs/${logoURI.split('//')[1]}`
Expand All @@ -76,7 +80,7 @@ export default function Card({ id, list, name }) {
}}
/>
<section>
<h3>{actualName}</h3>
<NameText>{actualName}</NameText>
<TokensListed>
{list?.tokens?.length > 0 ? `${list.tokens.length} tokens` : list === null ? 'Error' : 'Loading...'}
</TokensListed>
Expand Down

1 comment on commit 0e9acae

@vercel
Copy link

@vercel vercel bot commented on 0e9acae Feb 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.