minor styling

This commit is contained in:
Sriram Hariharan
2023-03-06 00:23:20 -06:00
parent 8b5fabce0c
commit 007ade81a0
4 changed files with 9 additions and 6 deletions

View File

@@ -74,6 +74,7 @@ export class Course {
constructor(course: Course | Serialized<Course>) { constructor(course: Course | Serialized<Course>) {
Object.assign(this, course); Object.assign(this, course);
this.schedule = new CourseSchedule(course.schedule);
} }
/** /**

View File

@@ -13,7 +13,7 @@
height: auto; height: auto;
color: white; color: white;
padding: 12px; padding: 12px;
margin: 40px; margin: 50px 20px;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -26,5 +26,9 @@
margin-left: 8px; margin-left: 8px;
} }
} }
.instructors {
margin-top: 8px;
}
} }
} }

View File

@@ -33,11 +33,10 @@ export default function CoursePopup({ course, onClose }: Props) {
#{course.uniqueId} #{course.uniqueId}
</Link> </Link>
</Text> </Text>
<Text size='medium'> <Text size='medium' className={styles.instructors}>
{course.getInstructorString({ {course.getInstructorString({
prefix: 'with ', prefix: 'with ',
format: 'first_last', format: 'first_last',
max: 3,
})} })}
</Text> </Text>
</Card> </Card>

View File

@@ -7,9 +7,9 @@ Last Updated: 03/4/2023
- [x] scraping course information - [x] scraping course information
- [x] injecting plus header and buttons - [x] injecting plus header and buttons
- [x] auto loading next pages - [x] auto loading next pages
- [ ] showing course popup - [x] showing course popup
- [ ] RMP, eCis, Textbook, and Syllabus buttons - [ ] RMP, eCis, Textbook, and Syllabus buttons
- [ ] displaying professor information on popup - [x] displaying professor information on popup
- [ ] saving courses - [ ] saving courses
- [ ] Multiple schedule support - [ ] Multiple schedule support
- [ ] Browser Action Popup - [ ] Browser Action Popup
@@ -26,7 +26,6 @@ Last Updated: 03/4/2023
- [ ] Grade distribution - [ ] Grade distribution
- [ ] Course description - [ ] Course description
- [ ] Highlight and use rich text to make course description more readable - [ ] Highlight and use rich text to make course description more readable
- [ ] auto load
- [ ] calendar - [ ] calendar
- [ ] calendar file export - [ ] calendar file export
- [ ] save as png - [ ] save as png