fix(ui): close left sidebar when create new page on mobile platform

This commit is contained in:
charlie
2021-12-06 16:41:15 +08:00
committed by Tienson Qin
parent edbde26fcb
commit e138b02e64

View File

@@ -285,6 +285,7 @@
(when-not config/publishing?
[:a.item.group.flex.items-center.px-2.py-2.text-sm.font-medium.rounded-md
{:on-click (fn []
(and (util/mobile?) (state/toggle-left-sidebar!))
(state/pub-event! [:go/search]))}
(ui/icon "circle-plus mr-3" {:style {:font-size 20}})
[:span.flex-1 (t :right-side-bar/new-page)]])]]]))))