-
Notifications
You must be signed in to change notification settings - Fork 23
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
Redesign tables on mobile #330
Conversation
Hide and show columns in the Assignments and Categories tables based on the screen size.
The category of an assignment is hidden in the table on small screen sizes; include this information in the assignment info modal.
The load event listener creates a race condition which results in the assignments table header not loading properly on mobile. Instead, call adjustColumns just after the assignments and categories tables are populated with data. Additionally, this commit has adjustColumns take in as a parameter the table on which it operates, enabling the resize event listener to be initialized only once the tables are built. This prevents edge case race conditions and makes the code more generalizable (if we want to use adjustColumns for, e.g., the schedule table in the future).
Instead of occupying the entire screen, have the stats modal sit between the categories table and the assignments table.
I just now made a commit that moves the stats modal to be between the categories and assignments tables, but the styling could use some work. We should also look into giving the other modals the same treatment. |
Style the (no-longer) modal so that it looks more like the surrounding tables, remove extra padding, and remove animations. We still need to have the modal close when a different class is selected.
Close the stats modal when a different class is selected or the data is reset.
Treat the corrections modal as a stats modal, and have it appear above the stats modal and behave in the same way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assignments table header still does not load properly on mobile for me. Apart from that, this looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can no longer reproduce the issue with the assignments table header; maybe there was some caching issue going on with my previous test. So, I think we can consider that issue fixed and this pull request ready to merge.
Hide and show columns in the Assignments and Categories tables based on
the screen size. Fixes #203.