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
Show menu's close arrow next to resizer handler (#8319)
Aleix Suau09ff255b25c7
diff --git a/app/assets/stylesheets/layout/_main_menu.sass b/app/assets/stylesheets/layout/_main_menu.sassindex 98aec72c725..29449440342 100644--- a/app/assets/stylesheets/layout/_main_menu.sass+++ b/app/assets/stylesheets/layout/_main_menu.sass@@ -336,6 +336,21 @@ a.main-menu--parent-nodepadding-left: $hierarchy-span-widthfont-size: 0.7rem+#main-menu ul ul.main-menu--children ul.pages-hierarchy+ .tree-menu--hierarchy-indicator+ @include varprop(color, main-menu-font-color)+ .tree-menu--item+ &.-selected+ @include varprop(background, main-menu-bg-selected-background)+ .tree-menu--title+ @include varprop(color, main-menu-selected-font-color)+ &:hover+ @include varprop(background, main-menu-bg-hover-background)+ .tree-menu--title+ @include varprop(color, main-menu-hover-font-color)+ text-decoration: none++// Resizer & toggle styles.main-menu--resizerbackground: noneheight: 100vh@@ -345,73 +360,43 @@ a.main-menu--parent-nodeborder-left-width: 2pxborder-left-style: solidborder-left-color: transparent- left: calc(#{$main-menu-width} - 2px)left: calc(var(--main-menu-width) - 2px)vertical-align: middlez-index: 1cursor: col-resize&:hover@include varprop(border-left-color, main-menu-resizer-color)- .main-menu--navigation-toggler- opacity: 1- i:before- @include varprop(color, main-menu-navigation-toggler-font-hover-color)-+ i:before+ @include varprop(color, main-menu-navigation-toggler-font-hover-color)&.showleft: $main-menu-folded-width-.main-menu--navigation-toggler- .hidden-navigation &- text-align: right- opacity: 0- cursor: col-resize- &:hover- @include varprop(color, main-menu-navigation-toggler-font-hover-color)- i:before- @include icon-mixin-arrow-right2- i:before- @include icon-mixin-arrow-right2-- position: absolute- top: 0- height: 40px- text-align: left+.resizer-toggle-containermargin-top: 50vh- margin-left: -14px- padding: 0- // Center toggle icon vertically. The element is higher than it looks like.- line-height: 38px- i- display: inline-block- width: 30px+ margin-left: -25px+ display: inline-block+ .main-menu--navigation-togglercursor: pointer- line-height: 40px&:before- color: $light-gray- padding-right: 0- padding-left: 2px+ @include icon-common+ font-size: 11px+ font-weight: 400+ &:not(.open):before+ @include icon-mixin-arrow-right2+ position: absolute+ right: 0&:hover@include varprop(color, main-menu-navigation-toggler-font-hover-color)- font-size: 11px- i:before- padding-left: 0- @include icon-mixin-arrow-left2--#main-menu ul ul.main-menu--children ul.pages-hierarchy- .tree-menu--hierarchy-indicator- @include varprop(color, main-menu-font-color)- .tree-menu--item- &.-selected- @include varprop(background, main-menu-bg-selected-background)- .tree-menu--title- @include varprop(color, main-menu-selected-font-color)- &:hover- @include varprop(background, main-menu-bg-hover-background)- .tree-menu--title- @include varprop(color, main-menu-hover-font-color)- text-decoration: none--+ .main-menu--navigation-toggler+ background-color: var(--main-menu-bg-color)+ &.open:before+ @include icon-mixin-arrow-left2+ i+ display: inline-block+ width: 12px+ &:before+ vertical-align: middle+ color: $light-gray// Badges for menu items such as "EXPERIMENTAL" or "BETA"$badge_offset: 4pxdiff --git a/frontend/src/app/components/resizer/main-menu-resizer.component.ts b/frontend/src/app/components/resizer/main-menu-resizer.component.tsindex 11e8408b66c..0626bd60e2e 100644--- a/frontend/src/app/components/resizer/main-menu-resizer.component.ts+++ b/frontend/src/app/components/resizer/main-menu-resizer.component.ts@@ -43,13 +43,15 @@ export const mainMenuResizerSelector = 'main-menu-resizer';(end)="resizeEnd()"(start)="resizeStart()"(move)="resizeMove($event)">- <a href="#"- [attr.title]="toggleTitle"- class="main-menu--navigation-toggler"- (accessibleClick)="toggleService.toggleNavigation($event)">+ <div class="resizer-toggle-container">+ <i [attr.title]="toggleTitle"+ class="main-menu--navigation-toggler"+ [ngClass]="{'open': toggleService.showNavigation}"+ (accessibleClick)="toggleService.toggleNavigation($event)"></i>+<i class="icon-resizer-vertical-lines"aria-hidden="true"></i>- </a>+ </div></resizer>`})