0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-09 14:21:42 -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 {
display: flex;
}
textarea {
min-height: 250px;
}
}
&.creating {
textarea {
min-height: 250px;
}
}
.hidden {
@ -2445,7 +2455,6 @@
textarea {
background-color: $color-gray-60;
color: $color-white;
min-height: 250px;
padding: 10px;
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
(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?)