mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
fix: pinned messages empty state drawer margin issues
This commit is contained in:
parent
c81dd8e3e3
commit
6e854428f2
@ -7,8 +7,14 @@
|
|||||||
:align-items :center})
|
:align-items :center})
|
||||||
|
|
||||||
(def image
|
(def image
|
||||||
{:width 80
|
{:width 72
|
||||||
:height 80})
|
:height 72})
|
||||||
|
|
||||||
|
(def image-container
|
||||||
|
{:width 80
|
||||||
|
:height 80
|
||||||
|
:align-items :center
|
||||||
|
:justify-content :center})
|
||||||
|
|
||||||
(def text-container
|
(def text-container
|
||||||
{:margin-top 12
|
{:margin-top 12
|
||||||
|
@ -15,9 +15,10 @@
|
|||||||
[rn/view {:style (merge styles/container container-style)}
|
[rn/view {:style (merge styles/container container-style)}
|
||||||
(if placeholder?
|
(if placeholder?
|
||||||
[rn/view {:style styles/image-placeholder}]
|
[rn/view {:style styles/image-placeholder}]
|
||||||
[fast-image/fast-image
|
[rn/view {:style styles/image-container}
|
||||||
{:style styles/image
|
[fast-image/fast-image
|
||||||
:source image}])
|
{:style styles/image
|
||||||
|
:source image}]])
|
||||||
[rn/view {:style styles/text-container}
|
[rn/view {:style styles/text-container}
|
||||||
[text/text
|
[text/text
|
||||||
{:style (styles/title blur?)
|
{:style (styles/title blur?)
|
||||||
|
@ -8,13 +8,13 @@
|
|||||||
:margin-bottom (when-not community? 12)})
|
:margin-bottom (when-not community? 12)})
|
||||||
|
|
||||||
(def community-tag-container
|
(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
|
(def no-pinned-messages-container
|
||||||
{:justify-content :center
|
{:justify-content :center
|
||||||
:align-items :center
|
:align-items :center})
|
||||||
:margin 12
|
|
||||||
:margin-bottom (when platform/android? 12)})
|
|
||||||
|
|
||||||
(def list-footer
|
(def list-footer
|
||||||
{:height (when platform/android? 12)})
|
{:height (when platform/android? 12)})
|
||||||
|
@ -130,6 +130,9 @@
|
|||||||
[cofx chat-id]
|
[cofx chat-id]
|
||||||
(navigation/show-bottom-sheet
|
(navigation/show-bottom-sheet
|
||||||
cofx
|
cofx
|
||||||
{:content (fn [] [pinned-messages-menu/view
|
{:padding-bottom-override 21
|
||||||
{:chat-id chat-id
|
:content (fn [] [pinned-messages-menu/view
|
||||||
:disable-message-long-press? (not= :chat (get-in cofx [:db :view-id]))}])}))
|
{:chat-id chat-id
|
||||||
|
:disable-message-long-press? (not= :chat
|
||||||
|
(get-in cofx
|
||||||
|
[:db :view-id]))}])}))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user