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

Special logic for pages that use the page layout and have the split screen at the content-bodyRight. When that is shown on mobile, the original PageHeader can be hidden and the menuToggler needs to further down because of the tab bar

Henriette Dargebc79466ee896
diff --git a/app/components/open_project/common/main_menu_toggle_component.sass b/app/components/open_project/common/main_menu_toggle_component.sass
index 64fba65e1f0..670c8c9d190 100644
--- a/app/components/open_project/common/main_menu_toggle_component.sass
+++ b/app/components/open_project/common/main_menu_toggle_component.sass
@@ -53,6 +53,14 @@
.wp-show--header-container--breadcrumb
margin-left: 0
+ @media only screen and (max-width: $breakpoint-lg)
+ // Special logic for those pages that already use the new layout and have the content-bodyRight filled (so basically, the split screen opened full height on mobile)
+ #content:has(#content-bodyRight > *)
+ #menu-toggle--expand-button
+ top: 60px
+ .op-wp-breadcrumb
+ margin-left: 30px
+
&:not(.hidden-navigation)
#menu-toggle--expand-button
display: none
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index bcd34150915..1c3ce5eaa6a 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -78,6 +78,13 @@
padding-top: var(--main-menu-toggler-top-spacing)
margin-top: calc(var(--main-menu-toggler-top-spacing) * -1)
+ // Hide the header, when the content-bodyRight is shown, because it has it's own header.
+ // Otherwise, the sticky header would lay on top of the split screen
+ #content:has(#content-bodyRight > *)
+ page-header,
+ sub-header
+ display: none
+
.work-packages--show-view .toolbar-container
margin-bottom: 0
.wp-show--header-container