From 5fcf99a6883dc14ab96116026bdcfddd485ddee9 Mon Sep 17 00:00:00 2001 From: snowwhitedev Date: Mon, 5 Jun 2023 21:27:58 +0700 Subject: [PATCH 1/3] re: fix brave wallet icon size --- src/theme/common.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/theme/common.scss b/src/theme/common.scss index 59cb4a77..b492dd81 100644 --- a/src/theme/common.scss +++ b/src/theme/common.scss @@ -91,6 +91,7 @@ max-width: 100%; width: 62px; height: auto; + max-height: 62px; } &.WalletConnectV2 { From e90dd9e45d723a2f6f758d93e7e3c3f0341b339e Mon Sep 17 00:00:00 2001 From: snowwhitedev Date: Mon, 5 Jun 2023 22:37:16 +0700 Subject: [PATCH 2/3] fix: adjust brave & flow icon spaces --- src/client/views/select-wallet.ts | 4 +--- src/client/views/utils/wallet-info.ts | 2 +- src/theme/common.scss | 18 ++++++++++++++++++ src/wallet/Web3WalletProvider.ts | 1 + 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/client/views/select-wallet.ts b/src/client/views/select-wallet.ts index a62106d0..92df9d9c 100644 --- a/src/client/views/select-wallet.ts +++ b/src/client/views/select-wallet.ts @@ -86,9 +86,7 @@ export class SelectWallet extends AbstractView { private getWalletButtonHtml(wallet: WalletInfo) { return ` - diff --git a/src/client/views/utils/wallet-info.ts b/src/client/views/utils/wallet-info.ts index bf21d31d..941aded4 100644 --- a/src/client/views/utils/wallet-info.ts +++ b/src/client/views/utils/wallet-info.ts @@ -210,7 +210,7 @@ function getEvmInjectedProviderInfo() { function getSolanaInjectedProviderInfo() { return window.solana?.isBraveWallet ? { - name: SupportedWalletProviders.Phantom, + name: SupportedWalletProviders.Phantom_Brave, label: 'Brave (Solana)', imgBig: braveWallet.imgBig, } diff --git a/src/theme/common.scss b/src/theme/common.scss index b492dd81..ca847ad5 100644 --- a/src/theme/common.scss +++ b/src/theme/common.scss @@ -99,6 +99,14 @@ width: 57px; } } + + &.Flow, + &.Phantom_Brave { + svg { + height: 52px; + width: auto; + } + } } .overlay-tn .no-tokens-tn { @@ -856,6 +864,16 @@ li.issuer-connect-banner-tn .fungible-token-btn { padding-top: 10px; } } + + &.Flow, + &.Phantom_Brave { + svg { + margin-top: 5px; + } + p { + padding-top: 5px; + } + } } .overlay-tn .skeleton-box { diff --git a/src/wallet/Web3WalletProvider.ts b/src/wallet/Web3WalletProvider.ts index 827b735a..167864a4 100644 --- a/src/wallet/Web3WalletProvider.ts +++ b/src/wallet/Web3WalletProvider.ts @@ -23,6 +23,7 @@ export enum SupportedWalletProviders { WalletConnectV2 = 'WalletConnectV2', Torus = 'Torus', Phantom = 'Phantom', + Phantom_Brave = 'Phantom_Brave', Flow = 'Flow', SafeConnect = 'SafeConnect', } From 88fd00837ba1cba933c8eb859cc4208300595e86 Mon Sep 17 00:00:00 2001 From: DreamSolidity <58669769+snowwhitedev@users.noreply.github.com> Date: Tue, 6 Jun 2023 22:02:15 +0700 Subject: [PATCH 3/3] Update wallet-info.ts --- src/client/views/utils/wallet-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/views/utils/wallet-info.ts b/src/client/views/utils/wallet-info.ts index 941aded4..cbdad532 100644 --- a/src/client/views/utils/wallet-info.ts +++ b/src/client/views/utils/wallet-info.ts @@ -211,7 +211,7 @@ function getSolanaInjectedProviderInfo() { return window.solana?.isBraveWallet ? { name: SupportedWalletProviders.Phantom_Brave, - label: 'Brave (Solana)', + label: 'Phantom (Brave)', imgBig: braveWallet.imgBig, } : {