From d74530b0e25e9c3364cd8ced6916eb7798424511 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Fri, 6 Sep 2024 09:21:21 +0530 Subject: [PATCH] round off width passed to rn-hole-view --- src/quo/components/profile/profile_card/view.cljs | 3 ++- src/quo/components/tags/token_tag/view.cljs | 2 +- src/quo/components/wallet/approval_label/view.cljs | 2 +- src/status_im/common/alert_banner/view.cljs | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/quo/components/profile/profile_card/view.cljs b/src/quo/components/profile/profile_card/view.cljs index 9b3b22cf13..c813f4ee4a 100644 --- a/src/quo/components/profile/profile_card/view.cljs +++ b/src/quo/components/profile/profile_card/view.cljs @@ -43,7 +43,8 @@ [] [{:x 20 :y 108 - :width (- width 40) + ;; https://github.com/status-im/status-mobile/pull/20950#issuecomment-2351505926 + :width (- (int width) 40) :height 50 :borderRadius 16}])} [rn/view diff --git a/src/quo/components/tags/token_tag/view.cljs b/src/quo/components/tags/token_tag/view.cljs index d65985420b..2753ce449f 100644 --- a/src/quo/components/tags/token_tag/view.cljs +++ b/src/quo/components/tags/token_tag/view.cljs @@ -27,7 +27,7 @@ [rn/view {:on-layout on-layout} [hole-view/hole-view {:holes (if options - [{:x (- container-width + [{:x (- (int container-width) (case size :size-24 10 :size-32 12 diff --git a/src/quo/components/wallet/approval_label/view.cljs b/src/quo/components/wallet/approval_label/view.cljs index b7a2b1d3f9..120ec51b52 100644 --- a/src/quo/components/wallet/approval_label/view.cljs +++ b/src/quo/components/wallet/approval_label/view.cljs @@ -36,7 +36,7 @@ {:holes [{:x 0 :y 0 :height style/top-hole-view-height - :width container-width + :width (int container-width) :borderBottomStartRadius 16 :borderBottomEndRadius 16}] :style {:margin-top (- style/top-hole-view-height)} diff --git a/src/status_im/common/alert_banner/view.cljs b/src/status_im/common/alert_banner/view.cljs index 191da4ebbb..c498353ef3 100644 --- a/src/status_im/common/alert_banner/view.cljs +++ b/src/status_im/common/alert_banner/view.cljs @@ -29,7 +29,7 @@ [] [{:x 0 :y constants/alert-banner-height - :width (:width (rn/get-window)) + :width (int (:width (rn/get-window))) :height constants/alert-banner-height :borderRadius style/border-radius}])} [quo/text @@ -54,7 +54,7 @@ {:style {:padding-bottom 0.5} :holes [{:x 0 :y (+ safe-area-top (* constants/alert-banner-height banners-count)) - :width (:width (rn/get-window)) + :width (int (:width (rn/get-window))) :height constants/alert-banner-height :borderRadius style/border-radius}]} [rn/view {:style {:background-color colors/neutral-100}}