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

Hide menu button on pages where there is no sidebar

Henriette Darge9face032c86b
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 383587d9af5..637a5c2df78 100644
--- a/app/components/open_project/common/main_menu_toggle_component.sass
+++ b/app/components/open_project/common/main_menu_toggle_component.sass
@@ -31,6 +31,9 @@
left: 11px
z-index: 1
+ @at-root .nosidebar &
+ display: none
+
#menu-toggle--collapse-button
margin-right: 5px
diff --git a/frontend/src/global_styles/common/header/index.sass b/frontend/src/global_styles/common/header/index.sass
index e8ad716c6ce..a312650c7f3 100644
--- a/frontend/src/global_styles/common/header/index.sass
+++ b/frontend/src/global_styles/common/header/index.sass
@@ -3,4 +3,3 @@
@import './app-menu'
@import './app-search'
@import './quick-add-menu'
-@import './main-menu-toggle'
diff --git a/frontend/src/global_styles/common/header/main-menu-toggle.sass b/frontend/src/global_styles/common/header/main-menu-toggle.sass
deleted file mode 100644
index bb6774d82ba..00000000000
--- a/frontend/src/global_styles/common/header/main-menu-toggle.sass
+++ /dev/null
@@ -1,5 +0,0 @@
-.op-main-menu-toggle
- flex-shrink: 0
-
- @at-root .nosidebar &
- display: none
diff --git a/spec/support/components/projects/project_custom_fields/edit_dialog.rb b/spec/support/components/projects/project_custom_fields/edit_dialog.rb
index 2e76754a26e..910bb958989 100644
--- a/spec/support/components/projects/project_custom_fields/edit_dialog.rb
+++ b/spec/support/components/projects/project_custom_fields/edit_dialog.rb
@@ -97,18 +97,15 @@ module Components
def expect_field_label_with_help_text(label_text)
expect_field_label(label_text)
- sleep 5 # Todo: remove
expect(find_field_label(label_text)).to have_link accessible_name: "Show help text"
end
def expect_field_label_without_help_text(label_text)
expect_field_label(label_text)
- sleep 5 # Todo: remove
expect(find_field_label(label_text)).to have_no_link accessible_name: "Show help text"
end
def click_help_text_link_for_label(label_text)
- expect_field_label_with_help_text(label_text)
link = find_field_label(label_text).find(:link, accessible_name: "Show help text")
link.click
end