more shallow links

This commit is contained in:
2025-01-13 15:00:29 -07:00
parent cc2001565e
commit 6774624739
4 changed files with 19 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ holiday schedule
multi-section support for due dates/times multi-section support for due dates/times
better error handling when files are unparseable better error handling when files are unparsable
websocket server to watch file system for changes, notify frontend it should invalidate cache websocket server to watch file system for changes, notify frontend it should invalidate cache

View File

@@ -18,7 +18,11 @@ export default function EditLectureTitle({
return ( return (
<div className="flex justify-between sm:flex-row flex-col"> <div className="flex justify-between sm:flex-row flex-col">
<div className="my-auto"> <div className="my-auto">
<Link className="btn hidden sm:inline" href={getCourseUrl(courseName)}> <Link
className="btn hidden sm:inline"
href={getCourseUrl(courseName)}
shallow={true}
>
{courseName} {courseName}
</Link> </Link>
</div> </div>
@@ -33,6 +37,7 @@ export default function EditLectureTitle({
<Link <Link
className="btn inline text-center flex-grow m-1" className="btn inline text-center flex-grow m-1"
href={getLecturePreviewUrl(courseName, lectureDay)} href={getLecturePreviewUrl(courseName, lectureDay)}
shallow={true}
> >
preview preview
</Link> </Link>

View File

@@ -12,7 +12,7 @@ export default function LecturePreview({ lecture }: { lecture: Lecture }) {
</section> </section>
<section> <section>
<div <div
className="markdownPreview text-xl" className="markdownPreview "
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: markdownToHTMLSafe(lecture.content, settings), __html: markdownToHTMLSafe(lecture.content, settings),
}} }}

View File

@@ -128,6 +128,17 @@ select {
.markdownPreview a { .markdownPreview a {
@apply text-blue-500 hover:text-blue-600 font-bold underline; @apply text-blue-500 hover:text-blue-600 font-bold underline;
} }
.markdownPreview li {
@apply leading-tight;
}
.markdownPreview p:has(+ul) {
@apply mb-0 m-0;
}
.markdownPreview ul, .markdownPreview ol {
@apply mb-1;
}
.draggingDay { .draggingDay {
@apply h-full transition-all duration-500; @apply h-full transition-all duration-500;