From 400ba2d7f9f901c3d12f267dd6ff34632e2025a8 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Thu, 20 Feb 2025 12:10:48 +0100 Subject: [PATCH] fix(Calendar All Day Events): positions the all day Events in its own container above the events --- public/css/components/calendar.css | 21 ++++++++- public/js/components/Calendar/Calendar.js | 3 -- public/js/components/Calendar/Day.js | 3 -- public/js/components/Calendar/Day/Page.js | 22 ++++++---- public/js/components/Calendar/Week/Page.js | 43 ++++++++++--------- .../components/Cis/Stundenplan/Stundenplan.js | 7 ++- 6 files changed, 58 insertions(+), 41 deletions(-) diff --git a/public/css/components/calendar.css b/public/css/components/calendar.css index 9be771adf..3e6eeb3e2 100644 --- a/public/css/components/calendar.css +++ b/public/css/components/calendar.css @@ -69,8 +69,27 @@ display: grid; } +.all-day-event-border{ + box-shadow: 1px 1px 0 #dee2e6; +} + +.all-day-event{ + max-height: 75px; + overflow:scroll; +} + +.all-day-event-container{ + position: sticky; + top: 44px; + display:grid; + grid-template-columns:repeat(7,1fr); + width:100%; + box-shadow: 0px 1px 0px #dee2e6; + z-index:3; +} + /* grid hour lines of the Stundenplan use box-shadow instead of border because box-shadow renders consistently on different viewports*/ -.box-shadow-border-top{ +.box-shadow-border{ box-shadow: 0 0 0 1px #dee2e6 !important; } diff --git a/public/js/components/Calendar/Calendar.js b/public/js/components/Calendar/Calendar.js index cdef23aa9..c3515df45 100644 --- a/public/js/components/Calendar/Calendar.js +++ b/public/js/components/Calendar/Calendar.js @@ -250,9 +250,6 @@ export default { - diff --git a/public/js/components/Calendar/Day.js b/public/js/components/Calendar/Day.js index a83ea6818..b85615f3e 100644 --- a/public/js/components/Calendar/Day.js +++ b/public/js/components/Calendar/Day.js @@ -53,9 +53,6 @@ export default { - ` diff --git a/public/js/components/Calendar/Day/Page.js b/public/js/components/Calendar/Day/Page.js index 4f83f7c36..679086885 100644 --- a/public/js/components/Calendar/Day/Page.js +++ b/public/js/components/Calendar/Day/Page.js @@ -366,7 +366,7 @@ export default {
-
+
@@ -381,7 +381,6 @@ export default {

Keine Lehrveranstaltungen

-
{{hour}}:00
@@ -394,9 +393,16 @@ export default { class="small rounded overflow-hidden fhc-entry" v-contrast > - -

this is a placeholder which means that no template was passed to the Calendar Page slot

-
+
+ +

this is a placeholder which means that no template was passed to the Calendar Page slot

+
+
+
+ +

this is a placeholder which means that no template was passed to the Calendar Page slot

+
+
@@ -414,7 +420,7 @@ export default {

this is a slot placeholder

- +
@@ -432,9 +438,7 @@ export default { - ` }