fix most issues on whiteboards

This commit is contained in:
Tienson Qin
2024-04-03 15:11:57 +08:00
parent 4a63f78aa8
commit 1f32893547
19 changed files with 158 additions and 187 deletions

View File

@@ -907,7 +907,8 @@
onboarding-state (state/sub :file-sync/onboarding-state)
right-sidebar-blocks (state/sub-right-sidebar-blocks)
route-name (get-in route-match [:data :name])
margin-less-pages? (boolean (#{:graph :whiteboard} route-name))
margin-less-pages? (or (boolean (#{:graph} route-name))
(db-model/whiteboard-page? (state/get-current-page)))
db-restoring? (state/sub :db/restoring?)
indexeddb-support? (state/sub :indexeddb/support?)
page? (= :page route-name)
@@ -997,10 +998,10 @@
(select/select-modal)
(custom-context-menu)
(plugins/custom-js-installer
{:t t
:current-repo current-repo
:nfs-granted? granted?
:db-restoring? db-restoring?})
{:t t
:current-repo current-repo
:nfs-granted? granted?
:db-restoring? db-restoring?})
(app-context-menu-observer)
[:a#download.hidden]