Skip to content

Commit

Permalink
fixed dark border around the community logo on community page
Browse files Browse the repository at this point in the history
This PR removes the dark border around the community logo on communities page 
reproducible only when the user has not yet joined the community
  • Loading branch information
jo-mut authored Jan 12, 2024
1 parent e3ab270 commit 6aa981d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions src/status_im/common/scroll_page/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,16 @@
(def picture-border-width 4)

(defn display-picture-container
[animation]
[animation theme]
(reanimated/apply-animations-to-style
{:transform [{:scale animation}]}
{:border-radius picture-diameter
:border-width picture-border-width
:border-color (colors/theme-colors colors/white colors/neutral-95)
:position :absolute
:top (- (+ picture-radius picture-border-width))
:left (+ (/ picture-radius 2) picture-border-width)}))
{:border-radius picture-diameter
:border-width picture-border-width
:border-color (colors/theme-colors colors/white colors/neutral-95 theme)
:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
:position :absolute
:top (- (+ picture-radius picture-border-width))
:left (+ (/ picture-radius 2) picture-border-width)}))

(defn display-picture
[theme]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/common/scroll_page/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
js/undefined)
[scroll-height])
[reanimated/view
{:style (style/display-picture-container animation)}
{:style (style/display-picture-container animation theme)}
[rn/image
{:source cover
:style (style/display-picture theme)}]]))
Expand Down

0 comments on commit 6aa981d

Please sign in to comment.