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
Fix calendar height
Benjamin Bädorf2b9e6364178e
diff --git a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.tsindex d90b702338c..fe015f43e15 100644--- a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts+++ b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts@@ -122,7 +122,8 @@ export class TimeEntryCalendarComponent {initialView: 'timeGridWeek',firstDay: this.configuration.startOfWeek(),hiddenDays: [],- contentHeight: 605,+ // This is a magic number that is derived by trial and error+ contentHeight: 550,slotEventOverlap: false,slotLabelInterval: `${this.labelIntervalHours}:00:00`,slotLabelFormat: (info:any) => ((this.maxHour - info.date.hour) / this.scaleRatio).toString(),diff --git a/frontend/src/app/features/calendar/te-calendar/te-calendar.template.html b/frontend/src/app/features/calendar/te-calendar/te-calendar.template.htmlindex 37fc9aace19..70c560e1c47 100644--- a/frontend/src/app/features/calendar/te-calendar/te-calendar.template.html+++ b/frontend/src/app/features/calendar/te-calendar/te-calendar.template.html@@ -1,19 +1,25 @@<!-- position: relative added in order for the loading indicator to be positioned correctly -->-<div class="te-calendar--container loading-indicator--location"- [attr.data-indicator-name]="'table'"- style="position: relative">-- <button *ngIf="memoizedCreateAllowed"- class="button te-calendar--create-button"- [attr.aria-label]="text.logTime"- (click)="addEventToday()">+<div+ class="te-calendar--container loading-indicator--location"+ [attr.data-indicator-name]="'table'"+ style="position: relative"+>+ <button+ *ngIf="memoizedCreateAllowed"+ class="button te-calendar--create-button"+ [attr.aria-label]="text.logTime"+ (click)="addEventToday()"+ ><op-icon icon-classes="button--icon icon-log_time"></op-icon>- <span class="button--text"- [textContent]="text.logTime"- aria-hidden="true"></span>+ <span+ class="button--text"+ [textContent]="text.logTime"+ aria-hidden="true"+ ></span></button>- <full-calendar #ucCalendar- [options]="calendarOptions">- </full-calendar>+ <full-calendar+ #ucCalendar+ [options]="calendarOptions"+ ></full-calendar></div>