Skip to content

Commit

Permalink
round off width passed to rn-hole-view
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Sep 16, 2024
1 parent 7b0260b commit 7fb37e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/quo/components/profile/profile_card/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/quo/components/tags/token_tag/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/quo/components/wallet/approval_label/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
4 changes: 2 additions & 2 deletions src/status_im/common/alert_banner/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
Expand Down

0 comments on commit 7fb37e4

Please sign in to comment.