mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-11 17:24:27 +00:00
image reply fix
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
a968149ecc
commit
2cc8c9822f
@ -7,7 +7,8 @@
|
|||||||
[status-im.ui.components.icons.vector-icons :as icons]
|
[status-im.ui.components.icons.vector-icons :as icons]
|
||||||
[status-im.ethereum.stateofus :as stateofus]
|
[status-im.ethereum.stateofus :as stateofus]
|
||||||
[status-im.ui.screens.chat.components.style :as styles]
|
[status-im.ui.screens.chat.components.style :as styles]
|
||||||
[re-frame.core :as re-frame]))
|
[re-frame.core :as re-frame]
|
||||||
|
[status-im.ui.components.react :as react]))
|
||||||
|
|
||||||
(def ^:private reply-symbol "↪ ")
|
(def ^:private reply-symbol "↪ ")
|
||||||
|
|
||||||
@ -26,7 +27,8 @@
|
|||||||
|
|
||||||
(defn reply-message [{:keys [from content]}]
|
(defn reply-message [{:keys [from content]}]
|
||||||
(let [contact-name @(re-frame/subscribe [:contacts/contact-name-by-identity from])
|
(let [contact-name @(re-frame/subscribe [:contacts/contact-name-by-identity from])
|
||||||
current-public-key @(re-frame/subscribe [:multiaccount/public-key])]
|
current-public-key @(re-frame/subscribe [:multiaccount/public-key])
|
||||||
|
{:keys [image text]} content]
|
||||||
[rn/view {:style (styles/reply-container false)}
|
[rn/view {:style (styles/reply-container false)}
|
||||||
[rn/view {:style (styles/reply-content)}
|
[rn/view {:style (styles/reply-content)}
|
||||||
[quo/text {:weight :medium
|
[quo/text {:weight :medium
|
||||||
@ -34,10 +36,17 @@
|
|||||||
:style {:line-height 18}
|
:style {:line-height 18}
|
||||||
:size :small}
|
:size :small}
|
||||||
(format-reply-author from contact-name current-public-key)]
|
(format-reply-author from contact-name current-public-key)]
|
||||||
[quo/text {:size :small
|
(if image
|
||||||
:number-of-lines 1
|
[react/image {:style {:width 56
|
||||||
:style {:line-height 18}}
|
:height 56
|
||||||
(:text content)]]
|
:background-color :black
|
||||||
|
:margin-top 2
|
||||||
|
:border-radius 4}
|
||||||
|
:source {:uri image}}]
|
||||||
|
[quo/text {:size :small
|
||||||
|
:number-of-lines 1
|
||||||
|
:style {:line-height 18}}
|
||||||
|
text])]
|
||||||
[rn/view
|
[rn/view
|
||||||
[pressable/pressable {:on-press #(re-frame/dispatch [:chat.ui/cancel-message-reply])
|
[pressable/pressable {:on-press #(re-frame/dispatch [:chat.ui/cancel-message-reply])
|
||||||
:accessibility-label :cancel-message-reply}
|
:accessibility-label :cancel-message-reply}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user