Skip to content

Commit

Permalink
Remove extra margin between author and message
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Jan 9, 2020
1 parent ddfc59b commit 41e63d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/status_im/ui/screens/chat/styles/message/message.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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]}]
Expand All @@ -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}))

Expand Down Expand Up @@ -159,7 +159,7 @@
(or outgoing
(not group-chat)))
16
4)}
0)}
(if outgoing
{:border-bottom-right-radius 4}
{:border-bottom-left-radius 4})
Expand Down

0 comments on commit 41e63d8

Please sign in to comment.