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

[#61126] simplify new hover card logic and style

Tobias Dillmann73e562d79ca1
diff --git a/frontend/src/app/core/setup/globals/global-listeners/hover-card-trigger.service.ts b/frontend/src/app/core/setup/globals/global-listeners/hover-card-trigger.service.ts
index 2bcd840e9e3..495f9e0b708 100644
--- a/frontend/src/app/core/setup/globals/global-listeners/hover-card-trigger.service.ts
+++ b/frontend/src/app/core/setup/globals/global-listeners/hover-card-trigger.service.ts
@@ -111,7 +111,7 @@ export class HoverCardTriggerService {
}
private loadAndShowHoverCard(el:HTMLElement, turboFrameUrl:string) {
- const overlay = jQuery('#hover-card-overlay').get(0);
+ const overlay = document.getElementById('hover-card-overlay');
if (!overlay) { return; }
overlay.innerHTML = '';
@@ -197,7 +197,7 @@ export class HoverCardTriggerService {
// It is important to check if we are currently showing a hover card. If we closed the modal service without
// doing so, we might accidentally close another modal (e.g. share dialog).
if (this.isShowingHoverCard && !this.mouseInModal) {
- const overlay = jQuery('#hover-card-overlay').get(0);
+ const overlay = document.getElementById('hover-card-overlay');
if (!overlay) { return; }
overlay.innerHTML = '';
diff --git a/frontend/src/app/spot/styles/sass/components/modal-overlay.sass b/frontend/src/app/spot/styles/sass/components/modal-overlay.sass
index 062bbbe3688..60c34b1025d 100644
--- a/frontend/src/app/spot/styles/sass/components/modal-overlay.sass
+++ b/frontend/src/app/spot/styles/sass/components/modal-overlay.sass
@@ -1,20 +1,9 @@
#hover-card-overlay
- //position: fixed
- //left: 0
- //background: transparent
- //right: unset
- //bottom: unset
- //top: initial
- //@include spot-z-index("drop-modal")
- //justify-content: center
- //align-items: center
display: none
&:has(.op-hover-card)
display: flex
flex-direction: column-reverse
- //right: unset
- //bottom: unset
@keyframes fade-in-hover-card
from