Merge branch 'Longhorn-Developers:main' into derek/experimental

This commit is contained in:
2024-09-29 14:59:26 -05:00
committed by GitHub
2 changed files with 14 additions and 9 deletions

View File

@@ -43,16 +43,17 @@ export default function CalendarCourseCell({
onClick, onClick,
}: CalendarCourseCellProps): JSX.Element { }: CalendarCourseCellProps): JSX.Element {
let rightIcon: React.ReactNode | null = null; let rightIcon: React.ReactNode | null = null;
if (status === Status.WAITLISTED) { // if (status === Status.WAITLISTED) {
rightIcon = <WaitlistIcon className='h-5 w-5' />; // rightIcon = <WaitlistIcon className='h-5 w-5' />;
} else if (status === Status.CLOSED) { // } else if (status === Status.CLOSED) {
rightIcon = <ClosedIcon className='h-5 w-5' />; // rightIcon = <ClosedIcon className='h-5 w-5' />;
} else if (status === Status.CANCELLED) { // } else if (status === Status.CANCELLED) {
rightIcon = <CancelledIcon className='h-5 w-5' />; // rightIcon = <CancelledIcon className='h-5 w-5' />;
} // }
// 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,
})} })}
> >

View File

@@ -38,6 +38,10 @@ const links: LinkItem[] = [
text: 'Degree Audit', text: 'Degree Audit',
url: 'https://utdirect.utexas.edu/apps/degree/audits/', url: 'https://utdirect.utexas.edu/apps/degree/audits/',
}, },
{
text: 'My Registered Courses',
url: 'https://utdirect.utexas.edu/registration/classlist.WBX',
},
]; ];
/** /**