diff --git a/frontend/resources/styles/main/partials/sidebar-element-options.scss b/frontend/resources/styles/main/partials/sidebar-element-options.scss index 36c098ca6..7febf9415 100644 --- a/frontend/resources/styles/main/partials/sidebar-element-options.scss +++ b/frontend/resources/styles/main/partials/sidebar-element-options.scss @@ -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; diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs index 9e86e786f..33de55bf3 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs @@ -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?)