Bläddra i källkod

fix: show whiteboard outliner in sidebar

Peng Xiao 3 år sedan
förälder
incheckning
065e2e2ca8

+ 1 - 1
src/main/frontend/components/page.cljs

@@ -400,7 +400,7 @@
               {:key path-page-name
                :class (util/classnames [{:is-journals (or journal? fmt-journal?)}])})
 
-       (if whiteboard-page?
+       (if (and whiteboard-page? (not sidebar?))
          [:div ((state/get-component :whiteboard/tldraw-preview) page-name)] ;; FIXME: this is not reactive
          [:div.relative
           (when (and (not sidebar?) (not block?))

+ 2 - 1
src/main/frontend/components/whiteboard.cljs

@@ -74,7 +74,8 @@
                 :min-height "40px"
                 :max-height "420px"
                 :left offset-x
-                :top offset-y}} children])]))
+                :top offset-y}}
+       (when d-open children)])]))
 
 (rum/defc dropdown-menu
   [{:keys [label children classname hover?]}]