fix wrong community logo position when scrolling down the channel list (#20408)

This commit is contained in:
Parvesh Monu 2024-06-12 22:50:07 +05:30 committed by GitHub
parent 60e1783b36
commit 256c9f7b10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -25,12 +25,12 @@
:blur :grey}) :blur :grey})
(defn- page-nav-base (defn- page-nav-base
[{:keys [margin-top background on-press accessibility-label icon-name behind-overlay?] [{:keys [margin-top background on-press accessibility-label icon-name behind-overlay? align-center?]
:or {background :white}} :or {background :white}}
& children] & children]
(into [rn/view {:style (style/container margin-top)} (into [rn/view {:style (style/container margin-top)}
(when icon-name (when icon-name
[rn/view {:style style/icon-container} [rn/view (when align-center? {:style style/icon-container})
[button/button [button/button
{:type (button-type background) {:type (button-type background)
:icon-only? true :icon-only? true

View File

@ -35,6 +35,7 @@
:on-press on-press :on-press on-press
:accessibility-label accessibility-label :accessibility-label accessibility-label
:networks networks :networks networks
:align-center? true
:networks-on-press #(rf/dispatch [:show-bottom-sheet {:content network-filter/view}]) :networks-on-press #(rf/dispatch [:show-bottom-sheet {:content network-filter/view}])
:right-side [(when (and (ff/enabled? ::ff/wallet.wallet-connect) :right-side [(when (and (ff/enabled? ::ff/wallet.wallet-connect)
(not watch-only?)) (not watch-only?))