Skip to content

Commit

Permalink
feat: aesthetically pleasing squishier course blocks when compressed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DereC4 authored Sep 29, 2024
1 parent f83e012 commit 438c82b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/components/calendar/CalendarCourseCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default function CalendarCourseCell({

// text-white or text-black based on secondaryColor
const fontColor = pickFontColor(colors.primaryColor);
// Note that overflow-hidden is the duct tape holding this all together

return (
<div
Expand All @@ -78,8 +79,8 @@ export default function CalendarCourseCell({
<Text
variant='h1-course'
as='p'
className={clsx('leading-tight! truncate', {
'-mt-0.8 -mb-0.2': timeAndLocation,
className={clsx('leading-tight! truncate overflow-clip', {
'-mb-0.2': timeAndLocation,
'text-wrap': !timeAndLocation,
})}
>
Expand Down

0 comments on commit 438c82b

Please sign in to comment.