mirror of
https://github.com/logseq/logseq.git
synced 2026-06-02 11:21:22 +00:00
improve tabbar display behavior
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user