Skip to content

Commit

Permalink
fix: padding bottom for message preview
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed May 15, 2024
1 parent a4d5740 commit a72d0d7
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/status_im/contexts/chat/messenger/messages/content/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,20 @@
(assoc :margin-top 4)))

(defn user-message-content
[{:keys [outgoing outgoing-status six-reactions? window-scale small-screen?
in-reaction-or-action-menu?]}]
[{:keys [outgoing outgoing-status six-reactions? window-scale small-screen?]}]
{:border-radius 16
:padding-horizontal (if in-reaction-or-action-menu? 12 8)
:padding-top (if in-reaction-or-action-menu? 8 4)
:padding-bottom (if in-reaction-or-action-menu?
12
(if (or small-screen?
(and
(> 3 window-scale)
six-reactions?))
(* message-padding-scaling-ratio window-scale)
4))
:padding-horizontal 8
:padding-top 4
:padding-bottom (if (or small-screen?
(and
(> 3 window-scale)
six-reactions?))
(* message-padding-scaling-ratio window-scale)
4)
:opacity (if (and outgoing (= outgoing-status :sending))
0.5
1)})

(def drawer-message-container
{:padding-top 4
:padding-bottom 8})
:padding-bottom 4})

0 comments on commit a72d0d7

Please sign in to comment.