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

[#47362] fixed team planner drag and drop distances

Eric Schuberta00b08ac2b45
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 cbede97f30e..2c26a196e64 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
@@ -335,7 +335,7 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,
{
field: 'title',
headerContent: {
- html: `<span aria-label="${this.text.assignee}" class="spot-icon spot-icon_user"></span> <span class="hidden-for-mobile">${this.text.assignee}</span>`,
+ html: `<span class="spot-link spot-link_inactive"><span aria-label="${this.text.assignee}" class="spot-icon spot-icon_user"></span><span class="hidden-for-mobile">${this.text.assignee}</span></span>`,
},
},
],
diff --git a/frontend/src/app/spot/styles/sass/components/link.sass b/frontend/src/app/spot/styles/sass/components/link.sass
index e579c46f3df..030d635e366 100644
--- a/frontend/src/app/spot/styles/sass/components/link.sass
+++ b/frontend/src/app/spot/styles/sass/components/link.sass
@@ -29,6 +29,7 @@
&_inactive
pointer-events: none
cursor: default
+ color: inherit
.spot-icon
&:first-child:not(:last-child)
diff --git a/modules/team_planner/spec/features/team_planner_add_existing_work_packages_spec.rb b/modules/team_planner/spec/features/team_planner_add_existing_work_packages_spec.rb
index f1ee39f176f..c374f369bf7 100644
--- a/modules/team_planner/spec/features/team_planner_add_existing_work_packages_spec.rb
+++ b/modules/team_planner/spec/features/team_planner_add_existing_work_packages_spec.rb
@@ -142,7 +142,7 @@ describe 'Team planner add existing work packages', js: true do
sleep 2
# Drag it to the team planner...
- add_existing_pane.drag_wp_by_pixel second_wp, 800, 0
+ add_existing_pane.drag_wp_by_pixel second_wp, 680, 0
team_planner.expect_and_dismiss_toaster(message: "Successful update.")
@@ -159,7 +159,7 @@ describe 'Team planner add existing work packages', js: true do
sleep 2
# Drag it to the team planner...
- add_existing_pane.drag_wp_by_pixel third_wp, 800, -50
+ add_existing_pane.drag_wp_by_pixel third_wp, 680, 100
team_planner.expect_and_dismiss_toaster(message: "Successful update.")