fix: pinned messages empty state drawer margin issues

This commit is contained in:
John Ngei 2024-04-17 10:28:49 +02:00 committed by GitHub
parent c81dd8e3e3
commit 6e854428f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 22 additions and 12 deletions

View File

@ -7,8 +7,14 @@
:align-items :center})
(def image
{:width 80
:height 80})
{:width 72
:height 72})
(def image-container
{:width 80
:height 80
:align-items :center
:justify-content :center})
(def text-container
{:margin-top 12

View File

@ -15,9 +15,10 @@
[rn/view {:style (merge styles/container container-style)}
(if placeholder?
[rn/view {:style styles/image-placeholder}]
[fast-image/fast-image
{:style styles/image
:source image}])
[rn/view {:style styles/image-container}
[fast-image/fast-image
{:style styles/image
:source image}]])
[rn/view {:style styles/text-container}
[text/text
{:style (styles/title blur?)

View File

@ -8,13 +8,13 @@
:margin-bottom (when-not community? 12)})
(def community-tag-container
{:margin-horizontal 20 :margin-top 4 :margin-bottom 12})
{:margin-horizontal 20
:margin-top 4
:margin-bottom 12})
(def no-pinned-messages-container
{:justify-content :center
:align-items :center
:margin 12
:margin-bottom (when platform/android? 12)})
:align-items :center})
(def list-footer
{:height (when platform/android? 12)})

View File

@ -130,6 +130,9 @@
[cofx chat-id]
(navigation/show-bottom-sheet
cofx
{:content (fn [] [pinned-messages-menu/view
{:chat-id chat-id
:disable-message-long-press? (not= :chat (get-in cofx [:db :view-id]))}])}))
{:padding-bottom-override 21
:content (fn [] [pinned-messages-menu/view
{:chat-id chat-id
:disable-message-long-press? (not= :chat
(get-in cofx
[:db :view-id]))}])}))