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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Change scroll implementation for main menu to sticky headers to avoid special solutions when something hooks into the sidemenu (e.g the EE banner)
Henriette Darge57fa27dea919
diff --git a/app/components/open_project/common/submenu_component.sass b/app/components/open_project/common/submenu_component.sassindex bba8cd5d7cf..bb30232b319 100644--- a/app/components/open_project/common/submenu_component.sass+++ b/app/components/open_project/common/submenu_component.sass@@ -2,10 +2,14 @@height: 100%display: flexflex-direction: column- overflow: hidden&--search- margin: 12px var(--main-menu-x-spacing)+ position: sticky+ // Header item + 10px padding+ top: calc(var(--main-menu-item-height) + 10px)+ z-index: 1+ background: var(--main-menu-bg-color)+ padding: 12px var(--main-menu-x-spacing)color: var(--main-menu-font-color)display: flexflex-direction: columndiff --git a/frontend/src/global_styles/layout/_main_menu.sass b/frontend/src/global_styles/layout/_main_menu.sassindex d8489adb461..630ef50ab64 100644--- a/frontend/src/global_styles/layout/_main_menu.sass+++ b/frontend/src/global_styles/layout/_main_menu.sass@@ -56,21 +56,6 @@ $arrow-left-width: 40pxposition: relative@include styled-scroll-bar- // Fixed heights to allow inner scrolling- .menu_root.closed,- .menu_root > li.open,- wp-query-select,- .searchable-menu,- .searchable-menu--search-container,- .main-menu--children > li.partial:only-child- height: 100%-- .main-menu--children- // 10px spacing- height: calc(100% - (var(--main-menu-item-height) + 10px))- overflow: auto- @include styled-scroll-bar-a:not(.Button):focuscolor: var(--main-menu-font-color)@@ -188,6 +173,10 @@ $arrow-left-width: 40px@include main-menu-hover.main-menu--children-menu-header+ position: sticky+ top: 0+ z-index: 1+ background: var(--main-menu-bg-color)padding: 10px 10px 0 4pxheight: calc(var(--main-menu-item-height) + 10px)