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

[OP#65520] set slot distance to 15m to properly display 30m events

Klaus Zanders2a29a300f74b
diff --git a/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.ts b/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.ts
index dd96e6122c2..ae00628d42c 100644
--- a/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.ts
@@ -95,6 +95,8 @@ export default class MyTimeTrackingController extends Controller {
eventMinHeight: 30,
eventMaxStack: 2,
nowIndicator: true,
+ slotDuration: '00:15:00',
+ slotLabelInterval: '01:00',
businessHours: { daysOfWeek: this.workingDaysValue, startTime: '00:00', endTime: '24:00' },
hiddenDays: this.hiddenDays(),
firstDay: this.startOfWeekValue,
@@ -127,21 +129,13 @@ export default class MyTimeTrackingController extends Controller {
}
if (info.event.extendedProps.ongoing) {
- stopTimerButton = toDOMString(
- opStopwatchStopIconData,
- 'small',
- { 'aria-hidden': 'true', class: 'octicon stop-timer-button' },
- );
+ stopTimerButton = toDOMString(opStopwatchStopIconData, 'small', { 'aria-hidden': 'true', class: 'octicon stop-timer-button' });
}
return {
html: `
<div class="fc-event-main-frame">
- <div class="fc-event-time">
- ${stopTimerButton}
-
- ${this.displayDuration(duration)}
- </div>
+ <div class="fc-event-time">${stopTimerButton} ${this.displayDuration(duration)}</div>
<div class="fc-event-title-container">
<div class="fc-event-title fc-event-wp" title="${info.event.extendedProps.workPackageSubject}">
<a class="Link--primary Link" href="${this.pathHelper.workPackageShortPath(info.event.extendedProps.workPackageId as string)}">