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

Rearranged more CSS elements for files tab

Andreas Pfohl304e0c011d0f
diff --git a/frontend/src/app/spot/styles/sass/components/list.sass b/frontend/src/app/spot/styles/sass/components/list.sass
index 6a53f665795..065aa19346d 100644
--- a/frontend/src/app/spot/styles/sass/components/list.sass
+++ b/frontend/src/app/spot/styles/sass/components/list.sass
@@ -109,4 +109,3 @@
#{$item-list} .spot-list--item-action
padding-left: $spot-spacing-1 + ($i * $spot-spacing-1)
-
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 11185c9657e..b080bd85d91 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_files.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_files.sass
@@ -26,23 +26,6 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-.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-upload
margin-top: $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 66e52d546f1..b2875cd96b7 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,6 +34,13 @@
&--tab-section
margin-bottom: $spot-spacing-2
+ &_no-header
+ .op-files-tab--file-upload
+ margin-top: 0
+
+ .op-files-tab--file-list-item:first-child
+ margin-top: 0
+
&--header
border-bottom: 1px solid #ddd
padding-bottom: $spot-spacing-0-75