|
@@ -250,16 +250,17 @@
|
|
|
|
|
|
|
|
(when (and left-sidebar-open? (not config/publishing?)) (recent-pages t))
|
|
(when (and left-sidebar-open? (not config/publishing?)) (recent-pages t))
|
|
|
|
|
|
|
|
- [:nav.px-2 {:aria-label "Sidebar"
|
|
|
|
|
- :class "new-page"}
|
|
|
|
|
- (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/sm-breakpoint?)
|
|
|
|
|
- (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)]])]]]))
|
|
|
|
|
|
|
+ (when-not (mobile-util/native-platform?)
|
|
|
|
|
+ [:nav.px-2 {:aria-label "Sidebar"
|
|
|
|
|
+ :class "new-page"}
|
|
|
|
|
+ (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/sm-breakpoint?)
|
|
|
|
|
+ (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)]])])]]))
|
|
|
|
|
|
|
|
(rum/defc left-sidebar < rum/reactive
|
|
(rum/defc left-sidebar < rum/reactive
|
|
|
[{:keys [left-sidebar-open? route-match]}]
|
|
[{:keys [left-sidebar-open? route-match]}]
|