Skip to content

Commit

Permalink
fix: reaction drawer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
codemaster115 committed Apr 26, 2024
1 parent 8fc6f47 commit e284fe2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 11 additions & 9 deletions src/status_im/contexts/chat/messenger/messages/content/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@
(assoc :margin-top 4)))

(defn user-message-content
[{:keys [outgoing outgoing-status six-reactions? window-scale small-screen?]}]
[{:keys [outgoing outgoing-status six-reactions? window-scale small-screen? preview?]}]
{:border-radius 16
: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)
:padding-horizontal (if preview? 12 8)
:padding-top (if preview? 8 4)
:padding-bottom (if preview?
12
(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)})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@
:outgoing-status outgoing-status
:small-screen? rn/small-screen?
:window-scale window-scale
:six-reactions? six-reactions?})
:six-reactions? six-reactions?
:preview? preview?})
:on-press (fn []
(if (and platform/ios? keyboard-shown?)
(do
Expand Down Expand Up @@ -268,7 +269,8 @@
:message-data message-data
:context context
:keyboard-shown? keyboard-shown?
:show-reactions? false}]]])]]))))
:preview? true
:show-reactions? true}]]])]]))))

(defn on-long-press
[{:keys [deleted? deleted-for-me?] :as message-data} context keyboard-shown?]
Expand Down

0 comments on commit e284fe2

Please sign in to comment.