Merge branch 'master' into fix/missing-title-property

This commit is contained in:
Tienson Qin
2022-05-09 21:39:13 +08:00
committed by GitHub
20 changed files with 224 additions and 166 deletions

View File

@@ -158,13 +158,12 @@
(defn open-block-in-sidebar!
[block-id]
(when block-id
(when-let [block (db/pull [:block/uuid block-id])]
(when-let [block (db/entity [:block/uuid block-id])]
(let [page? (nil? (:block/page block))]
(state/sidebar-add-block!
(state/get-current-repo)
(:db/id block)
(if page? :page :block)
block)))))
(if page? :page :block))))))
(defn reset-cursor-range!
[node]
@@ -1149,13 +1148,11 @@
(state/sidebar-add-block!
(state/get-current-repo)
(:db/id page)
:block
page)
:block)
(state/sidebar-add-block!
(state/get-current-repo)
(:db/id page)
:page
{:page page}))))))
:page))))))
(defn zoom-in! []
(if (state/editing?)