feat(ui): change red text when instructor not found (#483)

* feat(ui): change red text when instructor not found

* feat(ui): fix wrong ' usage

* feat(ui): changed/shortened text

* feat(ui): update text, get rid of formatting

* feat(ui): removed unintentional H character from testing

* feat(ui): add space

---------

Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
This commit is contained in:
Aaron Chen
2025-01-18 22:58:30 -06:00
committed by GitHub
parent a20332e53d
commit 52347fd56d

View File

@@ -252,10 +252,10 @@ export default function GradeDistribution({ course }: GradeDistributionProps): J
</Link> </Link>
</div> </div>
{distributions[semester] && !distributions[semester]!.instructorIncluded && ( {distributions[semester] && !distributions[semester]!.instructorIncluded && (
<div className='mt-3 flex flex-wrap content-center items-center self-stretch justify-center gap-3'> <div className='mt-3 flex flex-wrap content-center items-center self-stretch justify-center gap-3 text-center'>
<Text variant='mini' className='text-theme-red italic!'> <Text variant='small' className='text-theme-red'>
Instructor-specific data is not available for this course We couldn&apos;t find {semester !== 'Aggregate' && ` ${semester}`} grades for this
{semester !== 'Aggregate' && ` for ${semester}`}, showing course-wide data instead instructor, so here are the grades for all {course.department} {course.number} sections.
</Text> </Text>
</div> </div>
)} )}