mirror of https://github.com/logseq/logseq
Remove min height
parent
47f6178355
commit
3a40f9c0fb
|
@ -59,15 +59,19 @@
|
|||
[:div "loading ..."]
|
||||
|
||||
markup?
|
||||
(let [html (format/to-html content format config)
|
||||
html (if html html "<div></div>")]
|
||||
[:div.content
|
||||
{:id id
|
||||
:on-click on-click
|
||||
:dangerouslySetInnerHTML {:__html html}}])
|
||||
(let [html (format/to-html content format config)]
|
||||
(if (string/blank? html)
|
||||
[:div
|
||||
{:id id
|
||||
:on-click on-click }
|
||||
[:div.text-gray-500.cursor "Click to edit"]]
|
||||
[:div
|
||||
{:id id
|
||||
:on-click on-click
|
||||
:dangerouslySetInnerHTML {:__html html}}]))
|
||||
|
||||
:else ; other text formats
|
||||
[:div.pre-white-space.content
|
||||
[:div
|
||||
{:id id
|
||||
:on-click on-click}
|
||||
(if (string/blank? content)
|
||||
|
|
Loading…
Reference in New Issue