Fix calendar height

pull/10554/head
Benjamin Bädorf 3 years ago
parent ef28d4f086
commit 2b9e636417
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 3
      frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts
  2. 34
      frontend/src/app/features/calendar/te-calendar/te-calendar.template.html

@ -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(),

@ -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>

Loading…
Cancel
Save