diff --git a/public/index.css b/public/index.css index 95d517aff..a8ee836f7 100644 --- a/public/index.css +++ b/public/index.css @@ -123,33 +123,6 @@ a.address { border-bottom-color: transparent; } -input[type="text"] { - font-family: var(--font-family-sans-serif); - line-height: 1.6; -} -input[type="text"] { - outline: none; - border: none; - font-size: var(--font-size-regular); - color: var(--color-foreground); - background: transparent; - border: 1px solid var(--color-secondary); - border-radius: var(--border-radius-round); - padding: 1rem 1.5rem; - margin: 1rem; - height: var(--button-regular-height); -} -input[type="text"]::placeholder { - color: var(--color-secondary); - opacity: 1 !important; -} -input[type="text"].small { - font-size: var(--font-size-small); -} -input.wide { - width: 44ch; -} - .error { color: var(--color-negative) !important; border-color: var(--color-negative) !important; diff --git a/src/Form.svelte b/src/Form.svelte index 697392959..4201d3bc0 100644 --- a/src/Form.svelte +++ b/src/Form.svelte @@ -1,8 +1,7 @@ @@ -124,7 +127,7 @@ display: flex; align-items: center; width: 28rem; - height: 2.125rem; + height: 2.5rem; border: 1px dashed transparent; padding: 0.25rem 1rem; margin: 0; @@ -145,22 +148,9 @@ margin: 0; } - input.field { - border-radius: var(--border-radius-round); - overflow: hidden; - text-overflow: ellipsis; - border-color: var(--color-secondary) !important; - } .description.invalid { color: var(--color-negative) !important; } - input.field::placeholder { - color: var(--color-secondary); - font-style: italic; - } - input.field[disabled] { - color: var(--color-secondary); - } .label { border: 1px solid transparent; @@ -180,10 +170,16 @@ .actions.editable { visibility: visible; } + .text-input { + width: 28rem; + } @media (max-width: 720px) { .field { width: unset; } + .text-input { + width: 14rem; + } } @@ -194,15 +190,16 @@
{#if field.editable && editable} - (field.error = null)} - value={field.value || ""} - type="text" - {disabled} /> +
+ (field.error = null)} + bind:value={field.value} + {disabled} /> +
{:else} {#if field.value} @@ -241,7 +238,7 @@ {field.value} {/if} {:else} - ✗ Not set + ✗ Not set {/if} {/if} diff --git a/src/Header.svelte b/src/Header.svelte index a7114ce96..89cddbd74 100644 --- a/src/Header.svelte +++ b/src/Header.svelte @@ -70,6 +70,7 @@ display: flex; height: var(--button-regular-height); align-items: center; + margin-right: 0.5rem; } .error { text-align: center; @@ -86,10 +87,7 @@ text-decoration: none; } .search { - height: var(--button-regular-height); width: 16rem; - margin-left: 0.5rem; - display: inline-block; } .connect { display: inline-block; diff --git a/src/MobileNavbar.svelte b/src/MobileNavbar.svelte index 0747526a7..c47a66643 100644 --- a/src/MobileNavbar.svelte +++ b/src/MobileNavbar.svelte @@ -66,7 +66,7 @@