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 drop-modal placement to bottom-start by default

Oliver Günther9f5ed21ecec2
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html
index 57a4d2a9e3c..25dd4354230 100644
--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-modal/baseline-modal.component.html
@@ -1,6 +1,5 @@
<spot-drop-modal
[opened]="opened"
- alignment="bottom-right"
(closed)="opened = false"
class="op-baseline-modal"
>
@@ -8,6 +7,7 @@
slot="trigger"
type="button"
class="button"
+ [class.-active]="opened"
(click)="toggleOpen()"
[title]="text.toggle_title"
data-qa-selector="baseline-button"
diff --git a/frontend/src/app/shared/components/project-include/project-include.component.html b/frontend/src/app/shared/components/project-include/project-include.component.html
index 1ba9cc4cca2..dedb9589641 100644
--- a/frontend/src/app/shared/components/project-include/project-include.component.html
+++ b/frontend/src/app/shared/components/project-include/project-include.component.html
@@ -1,6 +1,5 @@
<spot-drop-modal
[opened]="opened"
- alignment="bottom-right"
(closed)="opened = false"
class="op-project-list-modal"
>
diff --git a/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts b/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts
index 33b2c650855..b077f640cb7 100644
--- a/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts
+++ b/frontend/src/app/spot/components/drop-modal/drop-modal.component.ts
@@ -43,7 +43,7 @@ export class SpotDropModalComponent implements OnDestroy {
* The default alignment of the drop modal. There are twelve alignments in total. You can check which ones they are
* from the `SpotDropAlignmentOption` Enum that is available in 'core-app/spot/drop-alignment-options'.
*/
- @Input() public alignment:Placement = 'bottom-end';
+ @Input() public alignment:Placement = 'bottom-start';
public _opened = false;