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; + } + }
diff --git a/src/Form.svelte b/src/Form.svelte index c3773f88b..0cbd48d3f 100644 --- a/src/Form.svelte +++ b/src/Form.svelte @@ -34,9 +34,10 @@ + + + + diff --git a/src/Modal.svelte b/src/Modal.svelte index 82d41f73b..7841fedf3 100644 --- a/src/Modal.svelte +++ b/src/Modal.svelte @@ -91,6 +91,12 @@ .modal-small .modal-subtitle { color: var(--color-foreground); } + @media (max-width: 720px) { + .modal { + width: 90%; + min-width: unset; + } + } {#if floating} diff --git a/src/Options.svelte b/src/Options.svelte index fa76c8d86..cb19ab550 100644 --- a/src/Options.svelte +++ b/src/Options.svelte @@ -51,6 +51,14 @@ .description :global(strong) { font-weight: var(--font-weight-medium); } + .desktop { + display: block !important; + } + @media (max-width: 720px) { + .desktop { + display: none !important; + } + }
@@ -63,7 +71,7 @@ {option.label} {#if option.description} -
+
{@html marked(option.description.join("\n"))}
{/if} diff --git a/src/Search.svelte b/src/Search.svelte index 6a301d9c3..eddff515f 100644 --- a/src/Search.svelte +++ b/src/Search.svelte @@ -1,9 +1,15 @@