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

@@ -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"