Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Ensure space remains if attachments are shown, removed otherwise

Oliver Günther044e299cf292
diff --git a/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.html b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.html
index 13b9a5afc2b..93476d85c55 100644
--- a/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.html
+++ b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.html
@@ -12,7 +12,7 @@
</div>
<fieldset
- class="form--fieldset"
+ class="form--fieldset op-ckeditor--attachments"
*ngIf="showAttachments && halResource?.attachments"
>
<legend class="form--fieldset-legend">
diff --git a/frontend/src/global_styles/content/editor/_ckeditor.sass b/frontend/src/global_styles/content/editor/_ckeditor.sass
index 4994efe9752..18d19c467b4 100644
--- a/frontend/src/global_styles/content/editor/_ckeditor.sass
+++ b/frontend/src/global_styles/content/editor/_ckeditor.sass
@@ -10,8 +10,8 @@
@include op-uc-table-header-styles
// Wrapper for full text element
-opce-ckeditor-augmented-textarea .op-ckeditor--wrapper
- margin-bottom: 2rem
+opce-ckeditor-augmented-textarea .op-ckeditor--attachments
+ margin-top: 2rem
// Ensure same border and min-height for preview
.ck-content,