larger hovers on lectures

This commit is contained in:
2025-01-07 12:15:08 -07:00
parent a494e315d2
commit a722e7291b
5 changed files with 21 additions and 2 deletions

View File

@@ -56,3 +56,7 @@ tighter integration with git
display days settings
- hide all sundays (horizontal space)
lecture preview link has server side render caching issues.

1
run.sh
View File

@@ -13,6 +13,7 @@ docker run -it --rm \
-v ~/projects/faculty/1810/2025-spring-alex/online:/app/storage/intro_to_web_online \
-v ~/projects/faculty/1400/2025_spring_alex/modules:/app/storage/1400 \
-v ~/projects/faculty/3840_Telemetry/2025_spring_alex/modules:/app/storage/telemetry \
-v ~/projects/faculty/4620_Distributed/2025Spring/modules:/app/storage/distributed \
node \
sh -c "
mkdir -p ~/.npm-global && \

View File

@@ -52,7 +52,18 @@ export function DayTitle({ day, dayAsDate }: { day: string; dayAsDate: Date }) {
<ClientOnly>
{(lectureName?.length ?? 0) > 0 && (
<Tooltip
message={lectureName}
message={
<div>
{lectureName}
{todaysLecture?.content && (
<>
<pre>
<code>{todaysLecture?.content}</code>
</pre>
</>
)}
</div>
}
targetRef={linkRef}
visible={tooltipVisible}
/>

View File

@@ -62,7 +62,9 @@ short answer
---
this is a matching question
^ left answer - right dropdown
^ other thing - another option`;
^ other thing - another option
^ - distractor
^ - other distractor`;
};
export default function EditQuiz({

View File

@@ -20,6 +20,7 @@ export const Tooltip: React.FC<{
" rounded-md py-1 px-2 " +
" transition-all duration-400 " +
" border border-slate-700 shadow-[0px_0px_10px_5px] shadow-slate-500/20 " +
" max-w-sm max-h-64 overflow-hidden " +
(visible ? " " : " hidden -z-50 ")
}
role="tooltip"