From 73fe14e17a36071657f45c05783039c12b1aa9fb Mon Sep 17 00:00:00 2001 From: Razboy20 Date: Sat, 17 Feb 2024 13:27:07 -0600 Subject: [PATCH] fix calendar course cell spacing --- .../components/CalendarCourseCell.stories.tsx | 2 +- .../CalendarCourseCell/CalendarCourseCell.tsx | 19 +++++++++++++------ .../PopupCourseBlock/PopupCourseBlock.tsx | 18 ++++++++++-------- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/stories/components/CalendarCourseCell.stories.tsx b/src/stories/components/CalendarCourseCell.stories.tsx index 19c1908e..1e9d3c84 100644 --- a/src/stories/components/CalendarCourseCell.stories.tsx +++ b/src/stories/components/CalendarCourseCell.stories.tsx @@ -36,7 +36,7 @@ export const Default: Story = {}; export const Variants: Story = { render: props => ( -
+
= ({ backgroundColor: colors.primaryColor, }} > -
- +
+ {course.department} {course.number} - {course.instructors[0].lastName} - - {meeting && - `${meeting.getTimeString({ separator: '–', capitalize: true })}${ + {meeting && ( + + {`${meeting.getTimeString({ separator: '–', capitalize: true })}${ meeting.location ? ` – ${meeting.location.building}` : '' }`} - + + )}
{rightIcon && (
- + {course.uniqueId} {course.department} {course.number} –{' '} {course.instructors.length === 0 ? 'Unknown' : course.instructors.map(v => v.lastName)}