From 2ab88606c1b6582c9357c03e889e93f91cbee2bf Mon Sep 17 00:00:00 2001 From: Dean Sallinen <7519573+deansallinen@users.noreply.github.com> Date: Thu, 5 Dec 2024 11:45:29 -0800 Subject: [PATCH] refactor(input): trailing element background --- src/lib/components/input/asset.svelte | 36 ++++++++------------------ src/lib/components/input/bytes.svelte | 27 ++++++++++--------- src/lib/components/input/number.svelte | 35 ++++++++----------------- src/lib/components/input/text.svelte | 26 +++++++------------ 4 files changed, 45 insertions(+), 79 deletions(-) diff --git a/src/lib/components/input/asset.svelte b/src/lib/components/input/asset.svelte index f0c9d0e03..ccf6e0f7e 100644 --- a/src/lib/components/input/asset.svelte +++ b/src/lib/components/input/asset.svelte @@ -121,31 +121,17 @@ } -
- - - - {String(symbol.code)} - -
+ + {String(symbol.code)} + {#if debug}

Component State

diff --git a/src/lib/components/input/bytes.svelte b/src/lib/components/input/bytes.svelte index e86bcaa07..2abb7f011 100644 --- a/src/lib/components/input/bytes.svelte +++ b/src/lib/components/input/bytes.svelte @@ -155,27 +155,26 @@ } -
- + -
+ {#if debug}
diff --git a/src/lib/components/input/number.svelte b/src/lib/components/input/number.svelte index 936474285..a2fcabb64 100644 --- a/src/lib/components/input/number.svelte +++ b/src/lib/components/input/number.svelte @@ -40,33 +40,20 @@ {#if unit} -
- - - - {unit} - -
+ + {unit} + {:else} {/if} + {#if debug}

Component State

diff --git a/src/lib/components/input/text.svelte b/src/lib/components/input/text.svelte index e7781a4bc..d1ff473c3 100644 --- a/src/lib/components/input/text.svelte +++ b/src/lib/components/input/text.svelte @@ -1,30 +1,20 @@ -
+
+ +
+ {@render props.children?.()} +