From 41e63d8e4a6e3c15def8c5a7421da7bc7ca30659 Mon Sep 17 00:00:00 2001 From: Gheorghe Pinzaru Date: Thu, 9 Jan 2020 19:02:18 +0300 Subject: [PATCH] Remove extra margin between author and message --- .../ui/screens/chat/styles/message/message.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/status_im/ui/screens/chat/styles/message/message.cljs b/src/status_im/ui/screens/chat/styles/message/message.cljs index ee8c04ea06ef..7baa707e974f 100644 --- a/src/status_im/ui/screens/chat/styles/message/message.cljs +++ b/src/status_im/ui/screens/chat/styles/message/message.cljs @@ -11,12 +11,12 @@ [outgoing] {:color (if outgoing colors/white colors/text)}) -(defn message-padding-top +(defn message-margin-top [{:keys [last-in-group? display-username?]}] (if (and display-username? last-in-group?) 6 - 2)) + 4)) (defn last-message-padding [{:keys [first? typing]}] @@ -25,10 +25,10 @@ (defn message-body [{:keys [outgoing] :as message}] - (let [align (if outgoing :flex-end :flex-start) + (let [align (if outgoing :flex-end :flex-start) direction (if outgoing :row-reverse :row)] {:flex-direction direction - :padding-top (message-padding-top message) + :margin-top (message-margin-top message) :align-self align :align-items align})) @@ -159,7 +159,7 @@ (or outgoing (not group-chat))) 16 - 4)} + 0)} (if outgoing {:border-bottom-right-radius 4} {:border-bottom-left-radius 4})