From b1b0d5edd0c2fe00e24bd70ff7171fd1dc5d271a Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Tue, 4 Mar 2025 12:05:24 +0100 Subject: [PATCH] remove(Calendar Week Page Style): removes not needed style check in component --- public/js/components/Calendar/Week/Page.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/public/js/components/Calendar/Week/Page.js b/public/js/components/Calendar/Week/Page.js index 55bbfbc75..1fe82ff0e 100644 --- a/public/js/components/Calendar/Week/Page.js +++ b/public/js/components/Calendar/Week/Page.js @@ -224,22 +224,7 @@ export default { return styleObj }, eventGridStyle(day, event) { - if (event.orig.allDayEvent) - { - return; - /*return { - 'z-index': '2', - 'grid-column': '1 / -1', - 'background-color': 'rgb(204, 204, 204)', - 'max-height': '75px', - color: 'black', - position: 'sticky', - top: '44px', - };*/ - } - else - { - return { + return { 'z-index': 1, 'grid-column-start': 1 + (event.lane - 1) * day.lanes / event.maxLane, 'grid-column-end': 1 + event.lane * day.lanes / event.maxLane, @@ -247,8 +232,7 @@ export default { 'grid-row-end': this.dateToMinutesOfDay(event.end), 'background-color': event.orig.color, 'max-height': '75px' - }; - } + }; }, calcHourPosition(event) { let height = this.$refs['eventsRef' + this.week].getBoundingClientRect().height;