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

Let team planner span whole available height so that the split screen is not cut off half way

Henriette Dargeb69ea215e80e
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 813ebc3ba33..c352246dd8c 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
@@ -1,7 +1,5 @@
-<!-- position: relative added in order for the loading indicator to be positioned correctly -->
-<div class="wp-calendar--container loading-indicator--location"
- [attr.data-indicator-name]="'table'"
- style="position: relative">
+<div class="op-team-planner loading-indicator--location"
+ [attr.data-indicator-name]="'table'">
<ng-container
*ngIf="(calendarOptions$ | async) as calendarOptions"
>
@@ -16,4 +14,4 @@
[principal]="resource.extendedProps.user"
></op-principal>
</ng-template>
-</div>
\ No newline at end of file
+</div>
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 ed217ff0105..7b91ea8b69d 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
@@ -153,7 +153,7 @@ export class TeamPlannerComponent extends UntilDestroyedMixin {
resourceTimelinePlugin,
],
initialView: 'resourceTimelineWeekDaysOnly',
- height: 500,
+ height: 'auto',
views: {
resourceTimelineWeekDaysOnly: {
type: 'resourceTimeline',
diff --git a/frontend/src/app/features/team-planner/team-planner/team-planner.routes.ts b/frontend/src/app/features/team-planner/team-planner/team-planner.routes.ts
index cee6901e0eb..fc30c734f84 100644
--- a/frontend/src/app/features/team-planner/team-planner/team-planner.routes.ts
+++ b/frontend/src/app/features/team-planner/team-planner/team-planner.routes.ts
@@ -52,6 +52,9 @@ export const TEAM_PLANNER_ROUTES:Ng2StateDeclaration[] = [
name: 'team_planner.page',
component: TeamPlannerPageComponent,
redirectTo: 'team_planner.page.show',
+ data: {
+ bodyClasses: 'router--team-planner',
+ },
},
{
name: 'team_planner.page.show',
diff --git a/frontend/src/global_styles/layout/_boards.sass b/frontend/src/global_styles/content/modules/_boards.sass
similarity index 100%
rename from frontend/src/global_styles/layout/_boards.sass
rename to frontend/src/global_styles/content/modules/_boards.sass
diff --git a/frontend/src/global_styles/content/modules/_index.sass b/frontend/src/global_styles/content/modules/_index.sass
index da34a6e3b9c..4b393435a12 100644
--- a/frontend/src/global_styles/content/modules/_index.sass
+++ b/frontend/src/global_styles/content/modules/_index.sass
@@ -3,8 +3,10 @@
@import 'auth_plugins'
@import 'avatars'
@import 'bim'
+@import 'boards'
@import 'costs'
@import 'documents'
@import '2fa'
@import 'webhooks'
@import 'meetings'
+@import 'team_planner'
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sass
new file mode 100644
index 00000000000..6eea31f8f19
--- /dev/null
+++ b/frontend/src/global_styles/content/modules/_team_planner.sass
@@ -0,0 +1,3 @@
+.router--team-planner
+ #content
+ height: 100%
diff --git a/frontend/src/global_styles/layout/_index.sass b/frontend/src/global_styles/layout/_index.sass
index 71221f69e7c..4d3df3fa80f 100644
--- a/frontend/src/global_styles/layout/_index.sass
+++ b/frontend/src/global_styles/layout/_index.sass
@@ -29,7 +29,6 @@
@import admin
@import base
@import base_mobile
-@import boards
@import grid
@import tree_menu
@import warning_bar