UI in the upper section of the chat differs from the lower section (#19679)

This commit is contained in:
Parvesh Monu 2024-04-22 20:29:29 +05:30 committed by GitHub
parent e104a9a935
commit 96b09eb862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 35 deletions

View File

@ -20,16 +20,27 @@
:right 0 :right 0
:height (+ top-margin messages.constants/header-container-radius)})) :height (+ top-margin messages.constants/header-container-radius)}))
(defn header-bottom-part (defn header-bottom-container
[bottom theme top-margin] [bottom top-margin]
(reanimated/apply-animations-to-style (reanimated/apply-animations-to-style
{:bottom bottom} {:bottom bottom}
(merge {:margin-top top-margin}))
(shadows/get 2 theme :inverted)
(defn header-bottom-part
[theme]
{:background-color (colors/theme-colors colors/white colors/neutral-95 theme) {:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
:padding-horizontal 20 :padding-horizontal 20
:border-radius 20 :border-radius 20})
:margin-top top-margin})))
(defn header-bottom-shadow
[theme]
(assoc
(shadows/get 2 theme :inverted)
:left 0
:right 0
:height 40
:position :absolute
:border-radius 20))
(defn header-image (defn header-image
[scale top left theme] [scale top left theme]

View File

@ -260,7 +260,9 @@
[:<> [:<>
[reanimated/view [reanimated/view
{:style (style/background-container background-color background-opacity top-margin)}] {:style (style/background-container background-color background-opacity top-margin)}]
[reanimated/view {:style (style/header-bottom-part bottom theme top-margin)} [reanimated/view {:style (style/header-bottom-container bottom top-margin)}
[rn/view {:style (style/header-bottom-shadow theme)}]
[rn/view {:style (style/header-bottom-part theme)}
[list-footer-avatar [list-footer-avatar
{:distance-from-list-top distance-from-list-top {:distance-from-list-top distance-from-list-top
:display-name display-name :display-name display-name
@ -286,7 +288,7 @@
:chat-id chat-id :chat-id chat-id
:customization-color customization-color :customization-color customization-color
:description description :description description
:last-message last-message}]]])) :last-message last-message}]]]]))
(defn list-footer (defn list-footer
[props] [props]