From e432b60b54b6b59205429a66081ecb2ee1a1c41e Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sun, 25 Sep 2022 18:11:52 +0200 Subject: [PATCH] Fixed half-hour lessons for work-week-v --- src/components/view/WorkWeek.jsx | 24 ++++++++++++------------ src/styles/main.scss | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/view/WorkWeek.jsx b/src/components/view/WorkWeek.jsx index b6ae2fc..0bcf223 100644 --- a/src/components/view/WorkWeek.jsx +++ b/src/components/view/WorkWeek.jsx @@ -57,8 +57,8 @@ export const WorkWeek = ({ events, selection, setSelection, hideOtherCourses })
9:00 – 11:00 @@ -66,8 +66,8 @@ export const WorkWeek = ({ events, selection, setSelection, hideOtherCourses })
11:00 – 13:00 @@ -75,8 +75,8 @@ export const WorkWeek = ({ events, selection, setSelection, hideOtherCourses })
14:00 – 16:00 @@ -84,8 +84,8 @@ export const WorkWeek = ({ events, selection, setSelection, hideOtherCourses })
16:00 – 18:00 @@ -109,9 +109,9 @@ export const WorkWeek = ({ events, selection, setSelection, hideOtherCourses }) } data-event-id={event.data.id} style={{ - '--start': event.start / 60 - 7, + '--start': event.start / 30 - 14, '--stack': stackIndex + 1, - '--size': (event.end - event.start) / 60, + '--size': (event.end - event.start) / 30, '--hue': (Math.abs(hashString('seed3' + event.data.id)) % 360) + @@ -134,10 +134,10 @@ export const WorkWeek = ({ events, selection, setSelection, hideOtherCourses }) ))} {/* Grid Tracks */} - {[2, 4, 6].map(i => ( + {[4, 8, 12].map(i => (
))} - {[7, 9, 11].map(i => ( + {[14, 18, 22].map(i => (
))}
diff --git a/src/styles/main.scss b/src/styles/main.scss index 7f61447..fb80f5b 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -778,7 +778,7 @@ body { .blocks { display: grid; - grid-template-rows: repeat(12, calc(var(--event-height))); + grid-template-rows: repeat(24, calc(var(--event-height) / 2)); .block { grid-row: var(--start) / span var(--size); @@ -842,7 +842,7 @@ body { display: grid; grid-template-columns: repeat(var(--size), auto); - grid-template-rows: repeat(12, var(--event-height)); + grid-template-rows: repeat(24, calc(var(--event-height) / 2)); padding: 0 0.25rem;