Remove top nav search button and add bottom padding for home list (#14966)

This commit is contained in:
Parvesh Monu 2023-02-02 19:16:54 +05:30 committed by GitHub
parent c38cb03956
commit c2cfb4539f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -40,7 +40,8 @@
:on-end-reached #(re-frame/dispatch [:chat/show-more-chats])
:keyboard-should-persist-taps :always
:data items
:render-fn chat-list-item/chat-list-item}])))
:render-fn chat-list-item/chat-list-item
:content-container-style {:padding-bottom 30}}])))
(defn welcome-blank-contacts
[]
@ -93,7 +94,7 @@
(defn home
[]
[:<>
[common.home/top-nav {:type :default}]
[common.home/top-nav {:type :default :hide-search true}]
[common.home/title-column
{:label (i18n/label :t/messages)
:handler #(rf/dispatch [:bottom-sheet/show-sheet :new-chat-bottom-sheet {}])

View File

@ -48,7 +48,8 @@
:keyboard-should-persist-taps :always
:shows-horizontal-scroll-indicator false
:data community-ids
:render-fn render-fn}])
:render-fn render-fn
:content-container-style {:padding-bottom 30}}])
(defn segments-community-lists
[selected-tab]

View File

@ -109,9 +109,10 @@
[jump-to-list switcher-cards shell-margin]
[top-nav-blur-overlay (:top insets)]
[common.home/top-nav
{:type :shell
:style {:margin-top (:top insets)
:z-index 2}}]])]))
{:type :shell
:hide-search true
:style {:margin-top (:top insets)
:z-index 2}}]])]))
(defn on-layout
[evt]