From 021060d797ecf908d7aaf3224b5195f0df8becfd Mon Sep 17 00:00:00 2001 From: balogunofafrica Date: Mon, 18 Mar 2024 11:49:51 +0100 Subject: [PATCH] move style --- .../contexts/chat/messenger/messages/list/style.cljs | 8 +++++++- .../contexts/chat/messenger/messages/list/view.cljs | 6 ++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/status_im/contexts/chat/messenger/messages/list/style.cljs b/src/status_im/contexts/chat/messenger/messages/list/style.cljs index 9b6cd0ddd571..9dfdd9167814 100644 --- a/src/status_im/contexts/chat/messenger/messages/list/style.cljs +++ b/src/status_im/contexts/chat/messenger/messages/list/style.cljs @@ -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}) diff --git a/src/status_im/contexts/chat/messenger/messages/list/view.cljs b/src/status_im/contexts/chat/messenger/messages/list/view.cljs index 689a869096b1..8dfe4b7bac8c 100644 --- a/src/status_im/contexts/chat/messenger/messages/list/view.cljs +++ b/src/status_im/contexts/chat/messenger/messages/list/view.cljs @@ -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