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

Fix #37155: Simplify quick add menu icon and circle positioning (#9304)

Wieland Lindenthale642f7c7452a
diff --git a/frontend/src/app/modules/common/header/quick-add-menu.sass b/frontend/src/app/modules/common/header/quick-add-menu.sass
index 730b4adc5b9..a050cbf5786 100644
--- a/frontend/src/app/modules/common/header/quick-add-menu.sass
+++ b/frontend/src/app/modules/common/header/quick-add-menu.sass
@@ -2,33 +2,19 @@
@include breakpoint(680px down)
display: none
- &--button
+ &--icon::before
display: flex
justify-content: center
align-items: center
- position: relative
- color: var(--button--alt-highlight-font-color)
- font-size: 0.8rem
+ border: 2px solid var(--header-item-font-color)
+ border-radius: 50%
+ width: 26px
+ height: 26px
+ padding: 1px 8px 0 8px
+ background: var(--button--alt-highlight-background-color)
+ border-color: var(--button--alt-highlight-background-color)
- > *
- z-index: 1
-
- &::after
- display: block
- background: var(--button--alt-highlight-background-color)
- border-width: 2px
- border-style: solid
- border-color: var(--button--alt-highlight-background-color)
- border-radius: 50%
- padding: 0.25rem
- width: 26px
- height: 26px
- content: ''
- position: absolute
-
- &:hover
- > *
- opacity: 0.9
-
- &::after
- opacity: 0.8
+ &:hover &
+ &--icon::before
+ background: var(--button--alt-highlight-background-hover-color)
+ border-color: var(--button--alt-highlight-background-hover-color)
diff --git a/lib/redmine/menu_manager/top_menu/quick_add_menu.rb b/lib/redmine/menu_manager/top_menu/quick_add_menu.rb
index b30681696ff..f596f89fed8 100644
--- a/lib/redmine/menu_manager/top_menu/quick_add_menu.rb
+++ b/lib/redmine/menu_manager/top_menu/quick_add_menu.rb
@@ -42,7 +42,7 @@ module Redmine::MenuManager::TopMenu::QuickAddMenu
label: '',
label_options: {
title: I18n.t('menus.quick_add.label'),
- icon: 'icon-add',
+ icon: 'icon-add op-quick-add-menu--icon',
class: 'op-quick-add-menu--button'
},
items: first_level_menu_items_for(:quick_add_menu, @project),