mirror of https://github.com/logseq/logseq
fix: don't show mobile toobar on PC
parent
cdc4f8befe
commit
276bfc7aae
|
@ -46,7 +46,8 @@
|
||||||
|
|
||||||
(rum/defc footer < rum/reactive
|
(rum/defc footer < rum/reactive
|
||||||
[]
|
[]
|
||||||
(when (and (state/sub :mobile/show-tabbar?)
|
(when (and (state/mobile?)
|
||||||
|
(state/sub :mobile/show-tabbar?)
|
||||||
(state/get-current-repo))
|
(state/get-current-repo))
|
||||||
[:div.cp__footer.w-full.bottom-0.justify-between
|
[:div.cp__footer.w-full.bottom-0.justify-between
|
||||||
(audio-record-cp)
|
(audio-record-cp)
|
||||||
|
|
|
@ -1190,9 +1190,13 @@
|
||||||
(set-state! :ui/shortcut-tooltip? (not mode))
|
(set-state! :ui/shortcut-tooltip? (not mode))
|
||||||
(storage/set :ui/shortcut-tooltip? (not mode))))
|
(storage/set :ui/shortcut-tooltip? (not mode))))
|
||||||
|
|
||||||
|
(defn mobile?
|
||||||
|
[]
|
||||||
|
(or (util/mobile?) (mobile-util/native-platform?)))
|
||||||
|
|
||||||
(defn enable-tooltip?
|
(defn enable-tooltip?
|
||||||
[]
|
[]
|
||||||
(if (or (util/mobile?) (mobile-util/native-platform?))
|
(if (mobile?)
|
||||||
false
|
false
|
||||||
(get (get (sub-config) (get-current-repo))
|
(get (get (sub-config) (get-current-repo))
|
||||||
:ui/enable-tooltip?
|
:ui/enable-tooltip?
|
||||||
|
|
Loading…
Reference in New Issue