fix: large page title for whiteboards

pull/7532/head
Tienson Qin 2022-11-30 21:36:03 +08:00
parent d3300cfcab
commit 4f0a7e3741
1 changed files with 3 additions and 2 deletions

View File

@ -286,8 +286,9 @@
[:a.asset-ref (pdf-utils/fix-local-asset-pagename title)] [:a.asset-ref (pdf-utils/fix-local-asset-pagename title)]
(if fmt-journal? (date/journal-title->custom-format title) title)) (if fmt-journal? (date/journal-title->custom-format title) title))
old-name (or title page-name)] old-name (or title page-name)]
[:h1.title.page-title.flex.cursor-pointer.gap-1.w-full [:h1.page-title.flex.cursor-pointer.gap-1.w-full
{:on-mouse-down (fn [e] {:class (if whiteboard-page? "" "title")
:on-mouse-down (fn [e]
(when (util/right-click? e) (when (util/right-click? e)
(state/set-state! :page-title/context {:page page-name}))) (state/set-state! :page-title/context {:page page-name})))
:on-click (fn [e] :on-click (fn [e]