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

Unify padding behaviour for mobile and desktop. Now both have the padding on the `content`. Before it was applied on differenent DOM elements, which for one did not make much sense and second caused bugs and special treatments as all components had to be able to deal with both cases

Henriette Dargea00a77a1684d
diff --git a/frontend/src/global_styles/layout/_base.sass b/frontend/src/global_styles/layout/_base.sass
index e7a2f8c8f4b..5ccdeb405a4 100644
--- a/frontend/src/global_styles/layout/_base.sass
+++ b/frontend/src/global_styles/layout/_base.sass
@@ -48,7 +48,7 @@
@include default-transition
@include styled-scroll-bar
margin: 0 0 0 0
- padding: 0px
+ padding: 0
// Needed for Safari
height: calc(100vh - var(--header-height))
overflow-y: auto
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index 0976f75eebc..31d5d99dcf6 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -60,11 +60,8 @@
min-height: calc(100vh - var(--header-height))
// ------------------- END CHANGED SCROLL BEHAVIOR
- #content-wrapper
- padding: 15px
-
#content
- padding: 0
+ padding: 10px 15px
#main
grid-template-columns: auto
@@ -87,4 +84,3 @@
@media screen and (max-width: $breakpoint-lg) and (min-width: $breakpoint-sm)
.hidden-for-tablet-and-small-laptops
display: none !important
-
diff --git a/frontend/src/global_styles/layout/work_packages/_mobile.sass b/frontend/src/global_styles/layout/work_packages/_mobile.sass
index a5b40113b62..1be0d5d9754 100644
--- a/frontend/src/global_styles/layout/work_packages/_mobile.sass
+++ b/frontend/src/global_styles/layout/work_packages/_mobile.sass
@@ -33,14 +33,11 @@
#main
#content-wrapper
- padding: 15px
&.nomenus
top: 0
- padding: 0
width: 100%
margin-left: 0
-
.work-packages--show-view
ul#toolbar-items li .wp-create-button .dropdown
left: 0 !important
@@ -129,9 +126,8 @@
.router--work-packages-partitioned-split-view
// Ensure the WP cards can span the complete width on mobile
- #content-wrapper
+ #content
padding: 15px 0 !important
.toolbar-container
margin-left: 15px
- padding-left: 0px !important