CLASSROOMIO-T-97: UX again? 😇
This commit is contained in:
@@ -64,6 +64,7 @@ h6 {
|
|||||||
.dark .prose h5,
|
.dark .prose h5,
|
||||||
.dark .prose h6,
|
.dark .prose h6,
|
||||||
.dark .prose li,
|
.dark .prose li,
|
||||||
|
.dark .prose strong,
|
||||||
.dark .prose li::marker,
|
.dark .prose li::marker,
|
||||||
.dark .prose p {
|
.dark .prose p {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|||||||
@@ -27,12 +27,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPathName(_isCoursePage = false) {
|
function getPathName(_isCoursePage = false, slug = '') {
|
||||||
if (!_isCoursePage) {
|
if (!_isCoursePage) {
|
||||||
return '/';
|
return '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $course.slug ? `${$page.url.host}/course/${$course.slug}` : `${$currentOrgPath}/courses`;
|
return slug ? `/course/${slug}` : `${$currentOrgPath}/courses`;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
{/if}
|
{/if}
|
||||||
<a
|
<a
|
||||||
href={getPathName(isCoursePage)}
|
href={getPathName(isCoursePage, $course.slug)}
|
||||||
target={isCoursePage && $course.slug ? '_blank' : ''}
|
target={isCoursePage && $course.slug ? '_blank' : ''}
|
||||||
title="Go to {isCoursePage ? 'Courses' : 'ClassroomIO Home'}"
|
title="Go to {isCoursePage ? 'Courses' : 'ClassroomIO Home'}"
|
||||||
id="logo"
|
id="logo"
|
||||||
|
|||||||
Reference in New Issue
Block a user