fix chat screen design issues (#20621)
This commit is contained in:
parent
91c22df498
commit
8aa1cadc66
|
@ -173,20 +173,21 @@
|
|||
|
||||
(defn avatar-view
|
||||
[{:keys [contact chat-id full-name color muted? image]}]
|
||||
(if contact ; `contact` is passed when it's not a group chat
|
||||
(let [online? (rf/sub [:visibility-status-updates/online? chat-id])
|
||||
photo-path (rf/sub [:chats/photo-path chat-id])]
|
||||
[quo/user-avatar
|
||||
(cond-> {:full-name full-name
|
||||
:size :small
|
||||
:online? online?
|
||||
:profile-picture photo-path}
|
||||
muted?
|
||||
(assoc :ring? false))])
|
||||
[quo/group-avatar
|
||||
{:customization-color color
|
||||
:picture (when image {:uri image})
|
||||
:size :size-32}]))
|
||||
[rn/view {:style {:justify-content :center}}
|
||||
(if contact ; `contact` is passed when it's not a group chat
|
||||
(let [online? (rf/sub [:visibility-status-updates/online? chat-id])
|
||||
photo-path (rf/sub [:chats/photo-path chat-id])]
|
||||
[quo/user-avatar
|
||||
(cond-> {:full-name full-name
|
||||
:size :small
|
||||
:online? online?
|
||||
:profile-picture photo-path}
|
||||
muted?
|
||||
(assoc :ring? false))])
|
||||
[quo/group-avatar
|
||||
{:customization-color color
|
||||
:picture (when image {:uri image})
|
||||
:size :size-32}])])
|
||||
|
||||
(defn- notification-layout
|
||||
[child]
|
||||
|
|
|
@ -66,7 +66,8 @@
|
|||
(chat-list-item/chat-list-item item theme))
|
||||
:scroll-event-throttle 8
|
||||
:content-container-style {:padding-bottom
|
||||
jump-to.constants/floating-shell-button-height}
|
||||
jump-to.constants/floating-shell-button-height
|
||||
:padding-top 8}
|
||||
:on-scroll #(common.banner/set-scroll-shared-value
|
||||
{:scroll-input (oops/oget % "nativeEvent.contentOffset.y")
|
||||
:shared-value scroll-shared-value})}])))
|
||||
|
|
Loading…
Reference in New Issue