feat: aesthetically pleasing squishier course blocks when compressed (#232)
This commit is contained in:
@@ -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,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user