Skip to content

Commit

Permalink
move style
Browse files Browse the repository at this point in the history
  • Loading branch information
BalogunofAfrica committed Mar 18, 2024
1 parent 7bfa045 commit 60d178f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@
:border-radius 50
:border-color (colors/theme-colors colors/white colors/neutral-95 theme)}))

(defn user-name
(defn user-name-container
[top left]
(reanimated/apply-animations-to-style
{:top top
:left left}
{:z-index -1}))

(defn user-name
[group-chat]
{:align-items :center
:flex-direction :row
:margin-top (if group-chat 94 52)})

(def bio
{:margin-top 8})
6 changes: 2 additions & 4 deletions src/status_im/contexts/chat/messenger/messages/list/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,9 @@
[4 50]
messages.constants/default-extrapolation-option)]
[reanimated/view
{:style (style/user-name top left)}
{:style (style/user-name-container top left)}
[rn/view
{:style {:align-items :center
:flex-direction :row
:margin-top (if group-chat 94 52)}}
{:style (style/user-name group-chat)}
[quo/text
{:weight :semi-bold
:size :heading-1
Expand Down

0 comments on commit 60d178f

Please sign in to comment.