Remove min height

pull/645/head
Tienson Qin 2020-05-02 07:20:52 +08:00
parent 47f6178355
commit 3a40f9c0fb
1 changed files with 11 additions and 7 deletions

View File

@ -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)