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

[#43226] moved style declaration to files.sass

Eric Schubertfdb294c2beee
diff --git a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list.html b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list.html
index f106f50b09b..7233231acb3 100644
--- a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list.html
+++ b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list.html
@@ -1,6 +1,5 @@
<div
*ngIf="resource && $attachments | async as attachments"
- class="work-package--attachments--files op-attachments-list"
>
<ul
*ngIf="attachments.length > 0"
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_files.sass b/frontend/src/global_styles/content/work_packages/tabs/_files.sass
index bc7a305d634..e162f878fc8 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_files.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_files.sass
@@ -26,11 +26,18 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-.op-files-tab,
-.op-attachments-list
+.op-files-tab
.op-files-tab--file-upload
margin-top: $spot-spacing-0-75
+ .op-tab-content--tab-section_no-header
+ // Remove any top margin of the top most elements, if the header is not displayed.
+ .op-files-tab--file-upload
+ margin-top: 0
+
+ .op-files-tab--file-list .op-files-tab--file-list-item:first-child
+ margin-top: 0
+
.op-files-tab--file-list
margin-bottom: $spot-spacing-0-75
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_tab_content.sass b/frontend/src/global_styles/content/work_packages/tabs/_tab_content.sass
index 760888fbb5e..66e52d546f1 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_tab_content.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_tab_content.sass
@@ -34,13 +34,6 @@
&--tab-section
margin-bottom: $spot-spacing-2
- &_no-header
- .op-files-tab--file-upload
- margin-top: 0
-
- .op-files-tab--file-list .op-files-tab--file-list-item:first-child
- margin-top: 0
-
&--header
border-bottom: 1px solid #ddd
padding-bottom: $spot-spacing-0-75