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
Reduce width of resource column
Henriette Darged9bf8a5a6879
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.htmlindex 16bb29959a3..747082c791c 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@@ -35,7 +35,7 @@><op-principal[principal]="resource.extendedProps.principal"- class="tp-assignee--principal"+ class="tp-assignee--principal op-principal_wrapped"></op-principal><buttontype="button"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.tsindex d49d114bcf4..55ffb9bc208 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@@ -279,7 +279,7 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,},events: this.calendarEventsFunction.bind(this) as unknown,resources: [],- resourceAreaWidth: '250px',+ resourceAreaWidth: '180px',select: this.handleDateClicked.bind(this) as unknown,resourceLabelContent: (data:ResourceLabelContentArg) => this.renderTemplate(this.resourceContent, data.resource.id, data),resourceLabelWillUnmount: (data:ResourceLabelContentArg) => this.unrenderTemplate(data.resource.id),diff --git a/frontend/src/global_styles/content/_principal.sass b/frontend/src/global_styles/content/_principal.sassindex 105e4139651..89f48b92c48 100644--- a/frontend/src/global_styles/content/_principal.sass+++ b/frontend/src/global_styles/content/_principal.sass@@ -13,6 +13,9 @@min-width: 0 // See: https://css-tricks.com/flexbox-truncated-text/margin-left: 10px+ &_wrapped &--name+ white-space: normal+&--multi-linedisplay: blockmargin-bottom: 2pxdiff --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.rbindex 2c8dbf58d6c..dc02cbcfad2 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@@ -100,7 +100,7 @@ describe 'Team planner add existing work packages', type: :feature, js: true dosleep 2# Drag it to the team planner...- add_existing_pane.drag_wp_by_pixel second_wp, 750, 50+ add_existing_pane.drag_wp_by_pixel second_wp, 800, 50team_planner.expect_and_dismiss_toaster(message: "Successful update.")@@ -117,7 +117,7 @@ describe 'Team planner add existing work packages', type: :feature, js: true dosleep 2# Drag it to the team planner...- add_existing_pane.drag_wp_by_pixel third_wp, 750, -50+ add_existing_pane.drag_wp_by_pixel third_wp, 800, -50team_planner.expect_and_dismiss_toaster(message: "Successful update.")diff --git a/modules/team_planner/spec/features/team_planner_error_handling_spec.rb b/modules/team_planner/spec/features/team_planner_error_handling_spec.rbindex 49434ca9d11..357e86577d4 100644--- a/modules/team_planner/spec/features/team_planner_error_handling_spec.rb+++ b/modules/team_planner/spec/features/team_planner_error_handling_spec.rb@@ -72,7 +72,7 @@ describe 'Team planner error handling', type: :feature, js: true do# Try to move the wpretry_block do- team_planner.drag_wp_by_pixel(work_package, 150, 0)+ team_planner.drag_wp_by_pixel(work_package, 200, 0)endteam_planner.expect_toast(type: :error, message: "#{custom_field.name} can't be blank")diff --git a/modules/team_planner/spec/features/team_planner_user_interaction_spec.rb b/modules/team_planner/spec/features/team_planner_user_interaction_spec.rbindex 1305800e23b..7e45afd55ac 100644--- a/modules/team_planner/spec/features/team_planner_user_interaction_spec.rb+++ b/modules/team_planner/spec/features/team_planner_user_interaction_spec.rb@@ -168,7 +168,7 @@ describe 'Team planner drag&dop and resizing', type: :feature, js: true do# Change the dates by dragging the complete wpretry_block do- team_planner.drag_wp_by_pixel(second_wp, -100, 0)+ team_planner.drag_wp_by_pixel(second_wp, -150, 0)endteam_planner.expect_and_dismiss_toaster(message: I18n.t('js.notice_successful_update'))diff --git a/modules/team_planner/spec/support/pages/team_planner.rb b/modules/team_planner/spec/support/pages/team_planner.rbindex fd1f15138db..562dc434f4c 100644--- a/modules/team_planner/spec/support/pages/team_planner.rb+++ b/modules/team_planner/spec/support/pages/team_planner.rb@@ -158,7 +158,7 @@ module Pagesresizer = is_start_date ? wp_strip.find('.fc-event-resizer-start') : wp_strip.find('.fc-event-resizer-end')- drag_by_pixel(element: resizer, by_x: number_of_days * 200, by_y: 0) unless resizer.nil?+ drag_by_pixel(element: resizer, by_x: number_of_days * 210, by_y: 0) unless resizer.nil?enddef drag_wp_by_pixel(work_package, by_x, by_y)