improve tabbar display behavior

This commit is contained in:
llcc
2022-05-24 16:11:30 +08:00
parent 31092d35d4
commit a701b2cfd6
2 changed files with 4 additions and 6 deletions

View File

@@ -379,10 +379,9 @@
[page :page])]
(state/sidebar-add-block! current-repo db-id block-type)))
(reset! sidebar-inited? true))))
state)
:did-mount (fn [state]
(state/set-state! :mobile/show-tabbar? true)
state)}
(when (state/mobile?)
(state/set-state! :mobile/show-tabbar? true))
state)}
[]
(let [default-home (get-default-home-if-valid)
current-repo (state/sub :git/current-repo)

View File

@@ -46,8 +46,7 @@
(rum/defc footer < rum/reactive
[]
(when (and (state/mobile?)
(state/sub :mobile/show-tabbar?)
(when (and (state/sub :mobile/show-tabbar?)
(state/get-current-repo))
[:div.cp__footer.w-full.bottom-0.justify-between
(audio-record-cp)