feat: better dashboard grid cols

This commit is contained in:
Peng Xiao
2022-07-24 16:25:14 +08:00
parent f3d2586cd9
commit ba5cdd93a8
4 changed files with 39 additions and 18 deletions

View File

@@ -56,12 +56,11 @@
(defn redirect-to-whiteboard!
([name]
(redirect-to-whiteboard! name nil))
([name {:keys [new? block-id]}]
([name {:keys [block-id]}]
(recent-handler/add-page-to-recent! (state/get-current-repo) name)
(redirect! {:to :whiteboard
:path-params {:name (str name)}
:query-params (merge {:block-id block-id}
(when new? {:new? 1}))})))
:query-params (merge {:block-id block-id})})))
(defn get-title
[name path-params]