From fc72ba6a1eda46395063f3cdba67ddddf9b4472b Mon Sep 17 00:00:00 2001 From: Brian Sztamfater Date: Fri, 5 Jan 2024 14:11:11 -0300 Subject: [PATCH] fix: fix height on account card component (#18329) Signed-off-by: Brian Sztamfater --- src/quo/components/wallet/account_card/style.cljs | 5 +++-- src/quo/components/wallet/account_card/view.cljs | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/quo/components/wallet/account_card/style.cljs b/src/quo/components/wallet/account_card/style.cljs index a65ad4dddc..bcfb1018ef 100644 --- a/src/quo/components/wallet/account_card/style.cljs +++ b/src/quo/components/wallet/account_card/style.cljs @@ -11,8 +11,9 @@ colors/white)) (defn card - [{:keys [customization-color type theme pressed?]}] - {:width 162 + [{:keys [customization-color type theme pressed? metrics?]}] + {:width 161 + :height (if metrics? 88 68) :background-color (when (not= :watch-only type) (colors/theme-colors (colors/resolve-color customization-color diff --git a/src/quo/components/wallet/account_card/view.cljs b/src/quo/components/wallet/account_card/view.cljs index ed2b819fd9..652438b978 100644 --- a/src/quo/components/wallet/account_card/view.cljs +++ b/src/quo/components/wallet/account_card/view.cljs @@ -21,7 +21,8 @@ :style (style/card {:customization-color customization-color :type type :theme theme - :pressed? false})} + :pressed? false + :metrics? metrics?})} [rn/view {:style style/loader-container} [rn/view {:style (assoc (style/loader-view {:width 16 @@ -113,7 +114,8 @@ :style (style/card {:customization-color customization-color :type type :theme theme - :pressed? @pressed?}) + :pressed? @pressed? + :metrics? metrics?}) :on-press on-press} (when (and customization-color (and (not watch-only?) (not missing-keypair?))) [customization-colors/overlay