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

[#52670] use octicons instead of spot-icons

Eric Schuberta3b59e0adca1
diff --git a/frontend/src/app/shared/components/icon/icon.module.ts b/frontend/src/app/shared/components/icon/icon.module.ts
index 5558307695e..1a0ab158485 100644
--- a/frontend/src/app/shared/components/icon/icon.module.ts
+++ b/frontend/src/app/shared/components/icon/icon.module.ts
@@ -2,6 +2,8 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { OpIconComponent } from './icon.component';
import {
+ ChevronLeftIconComponent,
+ ChevronRightIconComponent,
HomeIconComponent,
InfoIconComponent,
OpCursorRectangleSelectIconComponent,
@@ -11,6 +13,7 @@ import {
OpFirstPersonViewIconComponent,
OpGridMenuIconComponent,
OpOrthographicPerspectiveIconComponent,
+ OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,
OpThreedReturnDefaultIconComponent,
OpViewFitToIconComponent,
@@ -29,6 +32,8 @@ import {
imports: [
CommonModule,
+ ChevronLeftIconComponent,
+ ChevronRightIconComponent,
HomeIconComponent,
InfoIconComponent,
OpCursorRectangleSelectIconComponent,
@@ -38,6 +43,7 @@ import {
OpFirstPersonViewIconComponent,
OpGridMenuIconComponent,
OpOrthographicPerspectiveIconComponent,
+ OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,
OpThreedReturnDefaultIconComponent,
OpViewFitToIconComponent,
@@ -58,6 +64,8 @@ import {
exports: [
OpIconComponent,
+ ChevronLeftIconComponent,
+ ChevronRightIconComponent,
HomeIconComponent,
InfoIconComponent,
OpCursorRectangleSelectIconComponent,
@@ -67,6 +75,7 @@ import {
OpFirstPersonViewIconComponent,
OpGridMenuIconComponent,
OpOrthographicPerspectiveIconComponent,
+ OpResizerVerticalLinesIconComponent,
OpScissorsIconComponent,
OpThreedReturnDefaultIconComponent,
OpViewFitToIconComponent,
@@ -79,6 +88,7 @@ import {
StarFillIconComponent,
StarIconComponent,
XIconComponent,
+
],
})
export class IconModule {}
diff --git a/frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts b/frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts
index 870368f6731..9644515a73a 100644
--- a/frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts
+++ b/frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts
@@ -57,7 +57,9 @@ export const mainMenuResizerSelector = 'main-menu-resizer';
[class.open]="toggleService.showNavigation"
(click)="toggleService.toggleNavigation($event)"
>
- <span class="spot-icon spot-icon_1"></span>
+ <span class="resize-handle"><svg op-resizer-vertical-lines-icon size="small"></svg></span>
+ <span class="collapse-menu"><svg chevron-left-icon size="small"></svg></span>
+ <span class="expand-menu"><svg chevron-right-icon size="small"></svg></span>
</button>
</op-resizer>
`,
diff --git a/frontend/src/global_styles/layout/_main_menu.sass b/frontend/src/global_styles/layout/_main_menu.sass
index e07790f563b..f3458fbd4c4 100644
--- a/frontend/src/global_styles/layout/_main_menu.sass
+++ b/frontend/src/global_styles/layout/_main_menu.sass
@@ -66,8 +66,8 @@ $arrow-left-width: 40px
height: 100%
.main-menu--children
- height: calc(100% - (var(--main-menu-item-height) + 10px))
// 10px spacing
+ height: calc(100% - (var(--main-menu-item-height) + 10px))
overflow: auto
@include styled-scroll-bar
@@ -351,22 +351,32 @@ a.main-menu--parent-node
cursor: pointer
color: var(--main-menu-font-color)
- > .spot-icon:before
- @include spot-icon_resizer-vertical-lines
+ > .collapse-menu,
+ > .expand-menu
+ display: none
- &:hover
- > .spot-icon:before
- @include spot-icon_arrow-left2
+ &.open:hover
+ > .resize-handle
+ display: none
+
+ > .collapse-menu
+ display: block
&:not(.open)
left: 1rem
color: var(--accent-color)
- > .spot-icon:before
- @include spot-icon_arrow-right2
+ > .resize-handle
+ display: none
+
+ > .expand-menu
+ display: block
+
+ &:hover
+ border-right: 0.125rem solid var(--main-menu-border-color)
- &:hover .main-menu--navigation-toggler
- color: var(--accent-color)
+ .main-menu--navigation-toggler
+ color: var(--main-menu-border-color)
// Badges for menu items such as "EXPERIMENTAL" or "BETA"
$badge_offset: 4px