From 8cda4ff0c8fd5184c33c86d5c02f35aefb160644 Mon Sep 17 00:00:00 2001 From: OfficialBrot <36410565+OfficialFreak@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:25:31 +0100 Subject: [PATCH 1/2] fix line-height + outline width --- client/src/components/Weekplan/Lesson.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/Weekplan/Lesson.svelte b/client/src/components/Weekplan/Lesson.svelte index e0b84d4..08e3f44 100644 --- a/client/src/components/Weekplan/Lesson.svelte +++ b/client/src/components/Weekplan/Lesson.svelte @@ -257,8 +257,8 @@ &.teacher_absent { background: rgba(255, 255, 255, 0.08); - outline: 3px solid var(--cancelled-color); - outline-offset: -3px; + outline: 1.5px solid var(--cancelled-color); + outline-offset: -1.5px; } & > button { @@ -295,6 +295,7 @@ background: none; text-align: center; border-radius: 5px; + line-height: normal; } .subject { @@ -303,6 +304,7 @@ .extra_padding { padding: .05rem .5rem; + line-height: normal; } .rooms.horizontal-align { From d48301b326a173913856bfd2731ab93086ff90f7 Mon Sep 17 00:00:00 2001 From: OfficialBrot <36410565+OfficialFreak@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:32:24 +0100 Subject: [PATCH 2/2] fixed time indicator font sizes --- client/src/components/Weekplan/Weekplan.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/components/Weekplan/Weekplan.svelte b/client/src/components/Weekplan/Weekplan.svelte index eca907e..9a0cb01 100644 --- a/client/src/components/Weekplan/Weekplan.svelte +++ b/client/src/components/Weekplan/Weekplan.svelte @@ -220,6 +220,9 @@ line-height: calc(2 * var(--lesson-height) + .5rem); font-weight: bold; font-size: var(--font-size-lg); + @media only screen and (max-width: 900px) { + font-size: var(--font-size-base); + } text-align: center; } } @@ -229,6 +232,10 @@ flex-direction: column; span { + font-size: var(--font-size-base); + @media only screen and (max-width: 900px) { + font-size: var(--font-size-sm); + } height: calc(var(--lesson-height) + .25rem); line-height: calc(var(--lesson-height) + .25rem); opacity: 0.5;