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
Fix positioning for preview modal
Benjamin Bädorff39a6cd08209
diff --git a/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.html b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.htmlindex 5214d57fa14..06bf102505b 100644--- a/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.html+++ b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.html@@ -1,6 +1,10 @@-<div class="op-wp-preview-modal" wp-isolated-query-space *ngIf="workPackage">- <wp-single-card [workPackage]="workPackage"- orientation="horizontal"- (stateLinkClicked)="openStateLink($event)">- </wp-single-card>+<div+ class="op-wp-preview-modal" wp-isolated-query-space+ *ngIf="workPackage"+>+ <wp-single-card+ [workPackage]="workPackage"+ orientation="horizontal"+ (stateLinkClicked)="openStateLink($event)"+ ></wp-single-card></div>diff --git a/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.tsindex c9d3b441099..540be00bb9f 100644--- a/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts+++ b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts@@ -74,7 +74,7 @@ export class WpPreviewModalComponent extends OpModalComponent implements OnInitthis.workPackage = workPackage;this.cdRef.detectChanges();- const modal = jQuery(this.elementRef.nativeElement).find('.op-wp-preview-modal');+ const modal = jQuery(this.elementRef.nativeElement);this.reposition(modal, this.locals.event.target);});}