From 14b2a5be4928c915d56c4706b08e14402477ad32 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Mon, 23 Oct 2023 15:39:21 +0200 Subject: [PATCH] Increase clickable area for header buttons --- src/components/batch/BatchIndicator/index.tsx | 2 +- src/components/common/ConnectWallet/index.tsx | 3 ++- src/components/common/ConnectWallet/styles.module.css | 4 ++++ src/components/common/Header/styles.module.css | 7 ------- src/components/common/SafeTokenWidget/index.tsx | 2 +- src/components/common/SafeTokenWidget/styles.module.css | 3 ++- .../notification-center/NotificationCenter/index.tsx | 2 +- .../NotificationCenter/styles.module.css | 2 +- src/components/walletconnect/WcHeaderWidget/WcIcon.tsx | 2 +- 9 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/components/batch/BatchIndicator/index.tsx b/src/components/batch/BatchIndicator/index.tsx index f90c2925e8..7e27d95b45 100644 --- a/src/components/batch/BatchIndicator/index.tsx +++ b/src/components/batch/BatchIndicator/index.tsx @@ -13,7 +13,7 @@ const BatchIndicator = ({ onClick }: { onClick?: () => void }) => { return ( - + { const wallet = useWallet() - return wallet ? : + return
{wallet ? : }
} export default ConnectWallet diff --git a/src/components/common/ConnectWallet/styles.module.css b/src/components/common/ConnectWallet/styles.module.css index fe3bad0514..24057834f2 100644 --- a/src/components/common/ConnectWallet/styles.module.css +++ b/src/components/common/ConnectWallet/styles.module.css @@ -1,3 +1,7 @@ +.container { + padding: 0 var(--space-2); +} + .buttonContainer { display: flex; align-items: center; diff --git a/src/components/common/Header/styles.module.css b/src/components/common/Header/styles.module.css index f7a4b0a601..b1d164273d 100644 --- a/src/components/common/Header/styles.module.css +++ b/src/components/common/Header/styles.module.css @@ -11,7 +11,6 @@ } .element { - padding: 0 var(--space-2); height: 100%; border-right: 1px solid var(--color-border-light); display: flex; @@ -42,8 +41,6 @@ } .networkSelector { - padding-right: 0; - padding-left: 0; border-right: none; } @@ -66,10 +63,6 @@ padding-left: var(--space-2); } - .networkSelector { - padding-right: 0; - } - .hideMobile { display: none; } diff --git a/src/components/common/SafeTokenWidget/index.tsx b/src/components/common/SafeTokenWidget/index.tsx index 3b1b189566..9f37aa3704 100644 --- a/src/components/common/SafeTokenWidget/index.tsx +++ b/src/components/common/SafeTokenWidget/index.tsx @@ -59,7 +59,7 @@ const SafeTokenWidget = () => { const flooredSafeBalance = formatVisualAmount(allocation || BigNumber.from(0), TOKEN_DECIMALS, 2) return ( - + { return ( <> - + +