enhance: bottom bar to show undo mode

This commit is contained in:
Tienson Qin
2023-04-06 23:37:42 +08:00
parent e04ec1dd08
commit 6f1237a8b5
6 changed files with 52 additions and 14 deletions

View File

@@ -12,6 +12,7 @@
[frontend.components.svg :as svg]
[frontend.components.theme :as theme]
[frontend.components.widgets :as widgets]
[frontend.components.bottom-bar :as bottom-bar]
[frontend.config :as config]
[frontend.context.i18n :refer [t]]
[frontend.db :as db]
@@ -506,7 +507,7 @@
(left-sidebar {:left-sidebar-open? left-sidebar-open?
:route-match route-match})
[:div#main-content-container.scrollbar-spacing.w-full.flex.justify-center.flex-row.outline-none
[:div#main-content-container.scrollbar-spacing.w-full.flex.justify-center.flex-row.outline-none.relative
{:tabIndex "-1"
:data-is-margin-less-pages margin-less-pages?}
@@ -551,7 +552,9 @@
main-content])
(when onboarding-and-home?
(onboarding/intro onboarding-and-home?))]]]))
(onboarding/intro onboarding-and-home?))]
(bottom-bar/bar)]]))
(defonce sidebar-inited? (atom false))
;; TODO: simplify logic