fix chat screen design issues (#20621)
This commit is contained in:
parent
91c22df498
commit
8aa1cadc66
|
@ -173,6 +173,7 @@
|
|||
|
||||
(defn avatar-view
|
||||
[{:keys [contact chat-id full-name color muted? image]}]
|
||||
[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])]
|
||||
|
@ -186,7 +187,7 @@
|
|||
[quo/group-avatar
|
||||
{:customization-color color
|
||||
:picture (when image {:uri image})
|
||||
:size :size-32}]))
|
||||
: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