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

restyle header and sums

ulferts1e5e927b689d
diff --git a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass
index b18c691ce1b..6fb65d4314e 100644
--- a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass
+++ b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass
@@ -1,4 +1,7 @@
.fc-view-container
+ .fc-head
+ display: table-footer-group
+
.fc-head-container
border-color: white
diff --git a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
index a327b4d6305..d3e226e2d8f 100644
--- a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
+++ b/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
@@ -72,7 +72,7 @@ export class TimeEntryCalendarComponent implements OnInit, OnDestroy, AfterViewI
public calendarSlotLabelFormat = (info:any) => 24 - info.date.hour;
public calendarScrollTime = '24:00:00';
public calendarContentHeight = 545;
- public calendarAllDaySlot = true;
+ public calendarAllDaySlot = false;
public calendarAllDayText = '';
public calendarDisplayEventTime = false;
public calendarSlotEventOverlap = false;
@@ -197,10 +197,9 @@ export class TimeEntryCalendarComponent implements OnInit, OnDestroy, AfterViewI
calendarEntries.push({
title: this.i18n.t('js.units.hour', { count: this.formatNumber(duration) }),
- allDay: true,
- start: m.format(),
- classNames: 'te-calendar--day-sum',
- end: m.format()
+ start: m.clone().add(24 - Math.min(duration, 23.5) - 0.5, 'h').format(),
+ end: m.clone().add(24 - Math.min(duration, 23.5), 'h').format(),
+ classNames: 'te-calendar--day-sum'
});
}