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

Remove the 100% height again to avoid that the team planner takes the whole availabe height. Instead, make the toolbar sticky so that the smoother scrolling effect rem remains

Henriette Darge3daacd6b0d37
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 a0af1bdd5f2..d59c51f5bdd 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
@@ -382,7 +382,6 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,
.then(() => {
this.calendarOptions$.next(
this.calendar.calendarOptions({
- height: '100%',
schedulerLicenseKey: 'GPL-My-Project-Is-Open-Source',
selectable: true,
plugins: [resourceTimelinePlugin, interactionPlugin],
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sass
index 9795db3ed7a..48892833947 100644
--- a/frontend/src/global_styles/content/modules/_team_planner.sass
+++ b/frontend/src/global_styles/content/modules/_team_planner.sass
@@ -20,8 +20,30 @@
.fc-scrollgrid-section-footer
display: none
+ // -----------------
+ // This whole block is necessary to make the toolbar sticky and create a feeling of the team planner scrolling only inside.
+ // FullCalendar would normally do that on its own when passing `height: 100%` as parameter.
+ // However, this results in the team planner always spanning the complete screen which looks weird,
+ // if you only have few assignees. The last row is then always blown up.
.fc-header-toolbar
- margin-left: 138px
+ position: sticky
+ top: 0
+ background: white
+ z-index: 5
+ padding-left: 138px
+ padding-bottom: 1.5rem
+ margin: 0 !important
+
+ &--add-existing-toggle
+ z-index: 6
+
+ .fc-scrollgrid
+ border-top: none !important
+
+ .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky > *
+ top: 58px !important
+ border-top: 1px solid var(--fc-border-color, #ddd)
+ //-----------------
&_with_left_side_pane
.fc-header-toolbar