improved tooltips

This commit is contained in:
2026-01-07 09:02:16 -07:00
parent 678727c650
commit fb5ee94b55
5 changed files with 54 additions and 15 deletions

View File

@@ -22,6 +22,16 @@ export const BreadCrumbs = () => {
? decodeURIComponent(pathSegments[3])
: null;
const lectureDateOnly = lectureDate
? (() => {
const dateStr = lectureDate.split(" ")[0];
const date = new Date(dateStr);
const month = date.toLocaleDateString("en-US", { month: "short" });
const day = date.getDate();
return `${month} ${day}`;
})()
: null;
const sharedBackgroundClassNames = `
group
hover:bg-blue-900/30
@@ -86,7 +96,7 @@ export const BreadCrumbs = () => {
shallow={true}
className={sharedLinkClassNames}
>
{lectureDate}
{lectureDateOnly}
</Link>
</span>
</>