feat: aesthetically pleasing squishier course blocks when compressed (#232)

This commit is contained in:
2024-09-28 21:19:33 -05:00
committed by GitHub
parent f83e012d62
commit 438c82bfb5

View File

@@ -53,6 +53,7 @@ export default function CalendarCourseCell({
// text-white or text-black based on secondaryColor // text-white or text-black based on secondaryColor
const fontColor = pickFontColor(colors.primaryColor); const fontColor = pickFontColor(colors.primaryColor);
// Note that overflow-hidden is the duct tape holding this all together
return ( return (
<div <div
@@ -78,8 +79,8 @@ export default function CalendarCourseCell({
<Text <Text
variant='h1-course' variant='h1-course'
as='p' as='p'
className={clsx('leading-tight! truncate', { className={clsx('leading-tight! truncate overflow-clip', {
'-mt-0.8 -mb-0.2': timeAndLocation, '-mb-0.2': timeAndLocation,
'text-wrap': !timeAndLocation, 'text-wrap': !timeAndLocation,
})} })}
> >