mirror of https://github.com/logseq/logseq
fix: large page title for whiteboards
parent
d3300cfcab
commit
4f0a7e3741
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue