Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: make course search modal scrollable #907

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

Destaq
Copy link
Member

@Destaq Destaq commented Mar 20, 2024

Summary

Long overdue: make it so that you can scroll when searching for courses when you are searching for them to add to a semester.

Algorithm: sort first by matching course codes, then by title.

Test Plan

Use eyes.

Screenshot 2024-03-20 at 6 33 06 PM

Notes

Right now I just came up with my own styles — scroll spans max-height: 50vh;. Works on both mobile and desktop but maybe there is something else that is better? Though right now Joanna gave this the ok since it is pretty much the same height as if you had 10 courses (the default).

Also there is "dead code" (I just commented stuff out). Sarah and Sophia would undoubtedly be disappointed given what we went over in Dev Sesh 2. However I reckon it's best to leave this up there just in case any bugs come up (I don't think we are going to be bug bashing this).

@Destaq Destaq requested a review from a team as a code owner March 20, 2024 22:43
@dti-github-bot
Copy link
Member

[diff-counting] Significant lines: 5.

Copy link
Contributor

Visit the preview URL for this PR (updated for commit c79d332):

https://cornelldti-courseplan-dev--pr907-simon-make-modal-scr-jsnicvbr.web.app

(expires Fri, 19 Apr 2024 22:44:37 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 6d4e0437c4559ed895272bbd63991394f1e0e933

Copy link
Contributor

@KaylinChan KaylinChan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on mobile and web and looks great! thanks for the long overdue fix 😍

@Destaq Destaq merged commit d6034c3 into main Mar 21, 2024
11 checks passed
@Destaq Destaq deleted the simon/make-modal-scrollable branch March 21, 2024 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants