🐛 Fix annotations size: adjust textarea height according to annotation content

This commit is contained in:
Pablo Alba 2023-06-23 13:40:45 +02:00 committed by Andrés Moya
parent 85e1899f6b
commit 1770bb995b
2 changed files with 11 additions and 2 deletions

View file

@ -99,7 +99,7 @@
(fn [] (st/emit! (dw/set-annotations-id-for-create nil))))) ;; cleanup set-annotationsid-for-create on unload
(when (or creating? annotation)
[:div.component-annotation {:class (dom/classnames :editing @editing?)}
[:div.component-annotation {:class (dom/classnames :editing @editing? :creating creating?)}
[:div.title {:class (dom/classnames :expandeable (not (or @editing? creating?)))
:on-click #(expand (not annotations-expanded?))}
[:div (if (or @editing? creating?)