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

Let the split screen span the complete space (vertically and horizontally) when opened on small screens

Henriette Darge0db9ffdf8036
diff --git a/app/components/work_packages/split_view_component.sass b/app/components/work_packages/split_view_component.sass
index 2d344e5ab61..7aad3bdcbeb 100644
--- a/app/components/work_packages/split_view_component.sass
+++ b/app/components/work_packages/split_view_component.sass
@@ -3,3 +3,7 @@
width: 550px
justify-content: space-around
border-left: 1px solid var(--borderColor-muted)
+
+ @media screen and (max-width: $breakpoint-lg)
+ // Unfortunately, we have to enforce this style via !important as the resizer writes the width directly on the element as inline style
+ width: unset !important
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index 99154fe5975..f3b97b162ad 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -66,9 +66,6 @@
padding-left: 15px
padding-right: 15px
- #content-bodyRight
- display: none
-
#main
grid-template-columns: auto
@@ -87,6 +84,14 @@
.hidden-for-tablet
display: none !important
+@media screen and (max-width: $breakpoint-lg)
+ // As soon as the split screen has content (so basically when its opened), it takes the available whole space
+ #content-bodyRight:has(*)
+ grid-column: 1 / 3
+ grid-row: 1 / 3
+ background-color: var(--body-background)
+ z-index: 1
+
@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/_details_view.sass b/frontend/src/global_styles/layout/work_packages/_details_view.sass
index 630d6ef153f..6c387a04345 100644
--- a/frontend/src/global_styles/layout/work_packages/_details_view.sass
+++ b/frontend/src/global_styles/layout/work_packages/_details_view.sass
@@ -45,8 +45,6 @@ body.router--work-packages-partitioned-split-view-new
height: 100%
position: relative
width: 100%
- // Min-width is actually 530px but the border already needs 2px
- min-width: 528px
@media only screen and (max-width: $breakpoint-xl)
@at-root