diff --git a/packages/bridge-ui/src/components/ButtonWithTooltip.svelte b/packages/bridge-ui/src/components/ButtonWithTooltip.svelte
new file mode 100644
index 00000000000..d065c599256
--- /dev/null
+++ b/packages/bridge-ui/src/components/ButtonWithTooltip.svelte
@@ -0,0 +1,15 @@
+
+
+
{fromChain.name}
@@ -131,6 +132,8 @@
|
+ ($showMessageStatusTooltip = true)}>
+
{#if !processable}
Pending
{:else if !transaction.receipt && transaction.status === MessageStatus.New}
@@ -147,29 +150,28 @@
controlsLayout={[]}
/>
- {:else if transaction.receipt && transaction.status === MessageStatus.New}
- await claim(transaction)}
- >
- Claim
+ {:else if transaction.receipt && transaction.status === MessageStatus.New}
+ await claim(transaction)}
+ >
+ Claim
+
+ {:else if transaction.status === MessageStatus.Retriable}
+ await claim(transaction)}
+ >
+ Retry
+
+ {:else if transaction.status === MessageStatus.Failed}
+
+ Failed
+ {:else if transaction.status === MessageStatus.Done}
+ Claimed
+ {/if}
- {:else if transaction.status === MessageStatus.Retriable}
- await claim(transaction)}
- >
- Retry
-
- {:else if transaction.status === MessageStatus.Failed}
-
- Failed
- {:else if transaction.status === MessageStatus.Done}
- Claimed
- {/if}
- ($showMessageStatusTooltip = true)}>
-
-
+
|
diff --git a/packages/bridge-ui/src/components/Transactions.svelte b/packages/bridge-ui/src/components/Transactions.svelte
index c112bc74307..f45855b12b1 100644
--- a/packages/bridge-ui/src/components/Transactions.svelte
+++ b/packages/bridge-ui/src/components/Transactions.svelte
@@ -10,7 +10,7 @@
{#if $transactions.length}
-
+
From |
To |
Amount |
diff --git a/packages/bridge-ui/src/components/buttons/SelectToken.svelte b/packages/bridge-ui/src/components/buttons/SelectToken.svelte
index 7d26db4231e..b32b1c8782b 100644
--- a/packages/bridge-ui/src/components/buttons/SelectToken.svelte
+++ b/packages/bridge-ui/src/components/buttons/SelectToken.svelte
@@ -7,6 +7,8 @@
import { ChevronDown } from "svelte-heros-v2";
import { successToast } from "../../utils/toast";
+ let dropdownElement: HTMLDivElement;
+
async function select(t: Token) {
if (t === $token) return;
token.set(t);
@@ -16,15 +18,21 @@
bridgeType.set(BridgeType.ERC20);
}
successToast(`Token changed to ${t.symbol.toUpperCase()}`);
+
+ // to close the dropdown on click
+ dropdownElement?.classList.remove('dropdown-open');
+ if (document.activeElement instanceof HTMLElement) {
+ document.activeElement.blur();
+ }
}
-
+
diff --git a/packages/bridge-ui/src/components/form/Memo.svelte b/packages/bridge-ui/src/components/form/Memo.svelte
index b4d7ada2f4a..a19e17fcd4d 100644
--- a/packages/bridge-ui/src/components/form/Memo.svelte
+++ b/packages/bridge-ui/src/components/form/Memo.svelte
@@ -1,6 +1,7 @@
-
- Memo
- (tooltipOpen = true)}
- >
-
-
-
+ (tooltipOpen = true)}>
+ Memo
+
-
- {$_("bridgeForm.processingFeeLabel")}
- (tooltipOpen = true)}>
-
-
-
+ (tooltipOpen = true)}>
+ {$_("bridgeForm.processingFeeLabel")}
+
{#if $processingFee === ProcessingFeeMethod.CUSTOM}
diff --git a/packages/bridge-ui/src/components/form/SelectChain.svelte b/packages/bridge-ui/src/components/form/SelectChain.svelte
index 6a4fc919b84..6ccc547b8af 100644
--- a/packages/bridge-ui/src/components/form/SelectChain.svelte
+++ b/packages/bridge-ui/src/components/form/SelectChain.svelte
@@ -29,7 +29,7 @@
|