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

Take care the toolbar does not overlap the addExistingButton and remove focus after click

Henriette Darge2fe13dfc8e1e
diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
index b14c04353de..3450a43dddb 100644
--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
@@ -5,7 +5,9 @@
*ngIf="(calendarOptions$ | async) as calendarOptions"
>
<button
+ #addExistingToggle
class="button op-team-planner--add-existing-toggle"
+ [ngClass]="{'-active': (showAddExistingPane | async)}"
data-qa-selector="op-team-planner--add-existing-toggle"
(click)="toggleAddExistingPane()">
<op-icon icon-classes="icon-add button--icon"></op-icon>
diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
index 399af192821..2033666dc58 100644
--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
@@ -87,6 +87,8 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,
@ViewChild('removeDropzone', { read: ElementRef }) removeDropzone:ElementRef;
+ @ViewChild('addExistingToggle', { read: ElementRef }) addExistingToggle:ElementRef;
+
calendarOptions$ = new Subject<CalendarOptions>();
draggingItem$ = new BehaviorSubject<EventDragStartArg|undefined>(undefined);
@@ -607,5 +609,6 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,
private toggleAddExistingPane():void {
this.showAddExistingPane.next(!this.showAddExistingPane.getValue());
+ (this.addExistingToggle.nativeElement as HTMLElement).blur();
}
}
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sass
index e0dca33412c..b99129056bf 100644
--- a/frontend/src/global_styles/content/modules/_team_planner.sass
+++ b/frontend/src/global_styles/content/modules/_team_planner.sass
@@ -17,3 +17,6 @@
.fc-scrollgrid-section-body,
.fc-scrollgrid-section-footer
display: none
+
+ .fc-header-toolbar
+ margin-left: 132px