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

[#55581] small polishing fixes

Tobias Dillmannd83fb1a38927
diff --git a/app/components/users/hover_card_component.sass b/app/components/users/hover_card_component.sass
index 13f1be43dd1..b78c07aca3d 100644
--- a/app/components/users/hover_card_component.sass
+++ b/app/components/users/hover_card_component.sass
@@ -1,10 +1,10 @@
// When displaying the hover card on top of an existing modal, we must
// set the z-index so that the hover card stays in the front.
.op-user-share-modal-overlay
- z-index: 9600
position: absolute
+ z-index: 9600
-// Correct the z-index of the modal container so that it is above user auto completers
+// Correct the z-index of the regular hover card container so that it is above user auto completers
.spot-modal-overlay:has(.op-user-hover-card)
z-index: 9600
@@ -12,21 +12,6 @@
gap: 1rem
overflow: hidden
- // Triangle pointing to the source of the hover card
- // TODO: always points down, but the hover card might float south of the
- // target... So this is not correct in all cases.
- // Additionally, the shadow (aka border) is missing from this triangle.
- &::before
- content: ""
- width: 0
- height: 0
- border-left: 5px solid transparent
- border-right: 5px solid transparent
- border-top: 5px solid var(--body-background)
- position: absolute
- top: 100%
- left: 49%
-
.op-user-hover-card-user-info
gap: 0.5rem
diff --git a/frontend/src/app/shared/components/principal/principal.component.ts b/frontend/src/app/shared/components/principal/principal.component.ts
index 24ca049d4ce..2618fbc5153 100644
--- a/frontend/src/app/shared/components/principal/principal.component.ts
+++ b/frontend/src/app/shared/components/principal/principal.component.ts
@@ -78,7 +78,7 @@ export class OpPrincipalComponent implements OnInit {
@Input() hoverCard= false;
@Input() hoverCardUrl= '';
- @Input() hoverCardCloseDelay:number = 100;
+ @Input() hoverCardCloseDelay:number = 500;
@Input() hoverCardAlignment:string = 'top';
@Input() hoverCardModalTarget:'default'|'custom' = 'default';
diff --git a/modules/avatars/app/helpers/avatar_helper.rb b/modules/avatars/app/helpers/avatar_helper.rb
index 7404e88d676..750b8be7ed7 100644
--- a/modules/avatars/app/helpers/avatar_helper.rb
+++ b/modules/avatars/app/helpers/avatar_helper.rb
@@ -114,10 +114,7 @@ module AvatarHelper
inputs[:hoverCard] = true
inputs[:hoverCardModalTarget] = hover_card.fetch(:target, :default)
- # Hardcoded properties for now:
inputs[:hoverCardUrl] = hover_card_user_path(user.id)
- inputs[:hoverCardCloseDelay] = 250
- inputs[:hoverCardAlignment] = "top"
end
angular_component_tag "opce-principal",