diff --git a/public/index.css b/public/index.css index c7c4f4720..869af0eab 100644 --- a/public/index.css +++ b/public/index.css @@ -79,7 +79,7 @@ body { font-size: 16px; font-weight: 400; line-height: 1.6; - min-width: 580px; + min-width: var(--content-min-width); height: 100%; margin: 0; padding: 0; @@ -92,6 +92,12 @@ body { scrollbar-color: var(--color-scrollbar) transparent; } +@media (max-width: 720px) { + body { + min-width: 0; + } +} + html { height: 100%; -webkit-text-size-adjust: 100%; @@ -217,7 +223,7 @@ button.small { min-width: 6rem; } button.tiny { - min-width: 0; + min-width: auto; padding: 0 0.75rem; height: 2rem; } diff --git a/src/Address.svelte b/src/Address.svelte index 02dc007f1..09285dcc1 100644 --- a/src/Address.svelte +++ b/src/Address.svelte @@ -16,9 +16,6 @@ // This property allows components eg. Header.svelte to pass a resolved profile object. export let profile: Profile | null = null; - let checksumAddress = compact - ? formatAddress(address) - : ethers.utils.getAddress(address); let addressType: AddressType | null = null; const nameOrAddress = profile?.name || address; @@ -30,6 +27,9 @@ } }); $: addressLabel = profile?.name ? compact ? parseEnsLabel(profile.name, config) : profile.name : checksumAddress; + $: checksumAddress = compact + ? formatAddress(address) + : ethers.utils.getAddress(address); diff --git a/src/Cards.svelte b/src/Cards.svelte index bfe46c1ce..4325776d4 100644 --- a/src/Cards.svelte +++ b/src/Cards.svelte @@ -28,6 +28,11 @@ flex-direction: row; flex-wrap: wrap; } + @media (max-width: 720px) { + .list { + justify-content: center; + } + }