0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-09 22:31:50 -05:00

🐛 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

@ -2414,6 +2414,16 @@
.title .icon { .title .icon {
display: flex; display: flex;
} }
textarea {
min-height: 250px;
}
}
&.creating {
textarea {
min-height: 250px;
}
} }
.hidden { .hidden {
@ -2445,7 +2455,6 @@
textarea { textarea {
background-color: $color-gray-60; background-color: $color-gray-60;
color: $color-white; color: $color-white;
min-height: 250px;
padding: 10px; padding: 10px;
border: none; border: none;

View file

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