From 6630899e793ad1bc6f7560221261b4539b428463 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Wed, 27 Nov 2024 19:14:00 +0100 Subject: [PATCH] use flexbox for wallet card header and make logos more consistent (#1654) * use flexbox for wallet card header * make wallet logo consistent * remove extra div * Update styles/wallet.module.css Co-authored-by: ekzyis * Update styles/wallet.module.css Co-authored-by: ekzyis * resize wallet banner * remove unused justify-content * remove cardMeta --------- Co-authored-by: ekzyis Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> Co-authored-by: k00b --- components/wallet-card.js | 14 ++++++-------- pages/settings/wallets/[wallet].js | 3 ++- styles/wallet.module.css | 29 ++++++++++++++++++++++------- 3 files changed, 30 insertions(+), 16 deletions(-) diff --git a/components/wallet-card.js b/components/wallet-card.js index df5ad5e2..1c5d1d0c 100644 --- a/components/wallet-card.js +++ b/components/wallet-card.js @@ -25,12 +25,10 @@ export default function WalletCard ({ wallet, draggable, onDragStart, onDragEnte onDragEnter={onDragEnter} onDragEnd={onDragEnd} > -
-
- {status.any !== Status.Disabled && } - {support.recv && } - {support.send && } -
+
+ {status.any !== Status.Disabled && } + {support.recv && } + {support.send && }
{image - ? - : {wallet.def.card.title}} + ? + : {wallet.def.card.title}}
diff --git a/pages/settings/wallets/[wallet].js b/pages/settings/wallets/[wallet].js index b3bcca62..98cc2bf5 100644 --- a/pages/settings/wallets/[wallet].js +++ b/pages/settings/wallets/[wallet].js @@ -19,6 +19,7 @@ import validateWallet from '@/wallets/validate' import { ValidationError } from 'yup' import { useFormikContext } from 'formik' import { useWalletImage } from '@/components/wallet-image' +import styles from '@/styles/wallet.module.css' export const getServerSideProps = getGetServerSideProps({ authRequired: true }) @@ -72,7 +73,7 @@ export default function WalletSettings () { return ( {image - ? + ? :

{wallet.def.card.title}

}
{wallet.def.card.subtitle}