From 82e778325956355bca4e2d96acb7f687cef66be5 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Wed, 11 Dec 2024 16:59:35 +0100 Subject: [PATCH] stundenplan day layout fixed for scroll behaviour; max-height for stundenplan events to avoid escalating the grid width; --- public/css/components/calendar.css | 4 +- public/js/apps/Cis/Stundenplan.js | 4 +- public/js/components/Calendar/Day/Page.js | 188 +++++++++++--------- public/js/components/Calendar/Month/Page.js | 4 + public/js/components/Calendar/Pane.js | 4 +- public/js/components/Calendar/Week/Page.js | 6 +- 6 files changed, 118 insertions(+), 92 deletions(-) diff --git a/public/css/components/calendar.css b/public/css/components/calendar.css index 26d616616..67ee558fb 100644 --- a/public/css/components/calendar.css +++ b/public/css/components/calendar.css @@ -49,7 +49,8 @@ .fhc-calendar-week-page > div { /*transform: translate(-0.75em, -0.75em);*/ /*width: calc(100% + 1.5em);*/ - height: calc(100% + 1.5em); + /*height: calc(100% + 1.5em);*/ + max-height: 100%; } .fhc-calendar-week-page > div > div { padding-left: 3em; @@ -105,7 +106,6 @@ .fhc-calendar-day-page .events { display: grid; grid-template-columns: 3em 1fr; - margin-left: -3em; /*min-height: 266.6666666667%;*/ } .fhc-calendar-day-page .events .day { diff --git a/public/js/apps/Cis/Stundenplan.js b/public/js/apps/Cis/Stundenplan.js index 4fe7c656a..3327f5638 100644 --- a/public/js/apps/Cis/Stundenplan.js +++ b/public/js/apps/Cis/Stundenplan.js @@ -123,7 +123,9 @@ const app = Vue.createApp({