Skip to content

Commit

Permalink
[#9657] remove max-width for system messages in group chat, fix horiz…
Browse files Browse the repository at this point in the history
…ontal margin
  • Loading branch information
Artur Zabeyvorota committed Jan 13, 2020
1 parent 16e2af7 commit 8671067
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/status_im/ui/screens/chat/styles/message/message.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@
outgoing :flex-end
:else :flex-start)]
(merge {:flex-direction :column
:max-width (if platform/desktop? 500 320)
:align-items align}
(cond
system-message? nil
platform/desktop? {:max-width 500}
:else {:max-width 320})
(cond
system-message? {:margin-left 8 :margin-right 8}
outgoing {:margin-right 8}
(not display-photo?) {:margin-left 8}))))

Expand Down

0 comments on commit 8671067

Please sign in to comment.