From 94df4f3d7a1c1b608263f3e237c39d538ded49c6 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sat, 5 Aug 2023 08:02:42 +0100 Subject: [PATCH] =?UTF-8?q?CLASSROOMIO-T-97:=20UX=20again=3F=20?= =?UTF-8?q?=F0=9F=98=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.postcss | 1 + src/lib/components/Navigation/app.svelte | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.postcss b/src/app.postcss index a1939b6e..30f1edea 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -64,6 +64,7 @@ h6 { .dark .prose h5, .dark .prose h6, .dark .prose li, +.dark .prose strong, .dark .prose li::marker, .dark .prose p { color: #fff; diff --git a/src/lib/components/Navigation/app.svelte b/src/lib/components/Navigation/app.svelte index bd672d4e..fd0a5367 100644 --- a/src/lib/components/Navigation/app.svelte +++ b/src/lib/components/Navigation/app.svelte @@ -27,12 +27,12 @@ } } - function getPathName(_isCoursePage = false) { + function getPathName(_isCoursePage = false, slug = '') { if (!_isCoursePage) { return '/'; } - return $course.slug ? `${$page.url.host}/course/${$course.slug}` : `${$currentOrgPath}/courses`; + return slug ? `/course/${slug}` : `${$currentOrgPath}/courses`; } @@ -50,7 +50,7 @@ {/if}