From 9547f9438585ded0654558ad787b35cdb033a706 Mon Sep 17 00:00:00 2001 From: shadab-taiko <108871478+shadab-taiko@users.noreply.github.com> Date: Mon, 20 Feb 2023 21:19:37 +0530 Subject: [PATCH] fix(bridge-ui): max button css (#13192) --- .../src/components/form/BridgeForm.svelte | 21 ++++++++++++------- packages/bridge-ui/src/i18n.js | 3 ++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/packages/bridge-ui/src/components/form/BridgeForm.svelte b/packages/bridge-ui/src/components/form/BridgeForm.svelte index c1565c949bc..e6b09c0a734 100644 --- a/packages/bridge-ui/src/components/form/BridgeForm.svelte +++ b/packages/bridge-ui/src/components/form/BridgeForm.svelte @@ -348,13 +348,20 @@ {$_("bridgeForm.fieldLabel")} {#if $signer && tokenBalance} - {/if} +
+ + {$_("bridgeForm.balance")}: + {tokenBalance.length > 10 + ? `${truncateString(tokenBalance, 6)}...` + : tokenBalance} + {$token.symbol} + + + +
+ {/if}