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

Avoid that the menu button floats in the middle of nowhere and align it with the top bar waffle icon

Henriette Darge17d2349dcafc
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index 58d9720dc9e..289b76a79b4 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -149,15 +149,18 @@ See COPYRIGHT and LICENSE files for more details.
<%= content_tag :div,
id: "content",
class: "#{initial_classes} #{'content--split' if content_for?(:content_body_right)}" do %>
- <%= render(OpenProject::Common::MainMenuToggleComponent.new(expanded: false)) %>
<h1 class="hidden-for-sighted accessibility-helper"><%= t(:label_content) %></h1>
<% if content_for?(:content_header) %>
<div id="content-header">
+ <%= render(OpenProject::Common::MainMenuToggleComponent.new(expanded: false)) %>
+
<%= content_for :content_header %>
</div>
<% end %>
<div id="content-body">
+ <%= render(OpenProject::Common::MainMenuToggleComponent.new(expanded: false)) unless content_for?(:content_header) %>
+
<%= content_for :content_body %>
<% unless local_assigns[:no_layout_yield] %>
<%= yield %>
diff --git a/frontend/src/global_styles/common/header/app-header.sass b/frontend/src/global_styles/common/header/app-header.sass
index b1b20bc8839..c77c0379d33 100644
--- a/frontend/src/global_styles/common/header/app-header.sass
+++ b/frontend/src/global_styles/common/header/app-header.sass
@@ -39,7 +39,7 @@
&--start
grid-area: start
justify-content: flex-start
- padding-left: var(--main-menu-x-spacing)
+ padding-left: 4px
&--center
grid-area: center
diff --git a/frontend/src/global_styles/layout/_base.sass b/frontend/src/global_styles/layout/_base.sass
index 6dc27d3c23c..7e454dce769 100644
--- a/frontend/src/global_styles/layout/_base.sass
+++ b/frontend/src/global_styles/layout/_base.sass
@@ -120,6 +120,7 @@ $left-side-min-width: 300px
#content-body
grid-area: body
+ position: relative
padding-bottom: $bottom-space
padding-right: $right-space
padding-left: $left-space
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index 6defdfbf216..bcd34150915 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -52,6 +52,9 @@
padding-left: 15px
padding-right: 15px
+ #content-body
+ position: static
+
.hidden-for-mobile
display: none !important