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

Improve add assignee button in team planner (#10436)

Benjamin Bädorf0e69fd1ecfbc
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 45613de9713..d034ecc56c7 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
@@ -125,15 +125,15 @@
<div class="op-team-planner--add-assignee">
<div
class="wp-inline-create-button"
- *ngIf="!(showAddAssignee$ | async)"
+ *ngIf="!(showAddAssignee$ | async) && !(dropzone$ | async)?.dragging"
>
<button
type="button"
- class="wp-inline-create--add-link tp-assignee-add-button"
+ class="wp-inline-create--add-link op-team-planner--add-link"
(click)="showAssigneeAddRow()"
data-qa-selector="tp-assignee-add-button"
>
- <op-icon icon-classes="icon-context icon-add"></op-icon>
+ <span class="spot-icon spot-icon_user-plus"></span>
<span [textContent]="text.add_assignee"></span>
</button>
</div>
diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.sass b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.sass
index 1b7ad917912..1520662730f 100644
--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.sass
+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.sass
@@ -46,7 +46,6 @@ $op-team-planner-resource-width: 180px
margin-top: 1rem
&--add-assignee
- width: $op-team-planner-resource-width
border-right: 1px solid transparent
&--remove-dropzone
@@ -58,6 +57,8 @@ $op-team-planner-resource-width: 180px
align-items: center
justify-content: center
+ margin-left: $op-team-planner-resource-width
+
&_active
background: #D1E5F5
@@ -86,3 +87,10 @@ $op-team-planner-resource-width: 180px
&--empty-state-button
margin: 1rem 0
+
+ &--add-link
+ font-size: 14px
+
+ .spot-icon
+ padding-left: 7px
+ padding-right: 10px