AntAlmanac
AntAlmanac copied to clipboard
feat: mobile ui and saved scroll position
Summary
Save the scroll position of the previous tab when switching to a new tab, and restore the scroll position if the previous tab is revisited.
Move the tabs to the bottom and accommodate for mobile-specific factors like the bottom edge of the phone, rounded corners, etc.
Testing
Mobile Responsiveness
- Open the website in desktop mode. The calendar and the tabs with search, added courses, and map should be side-by-side.
- Shrink the viewport to a mobile layout. There should be tabs on the bottom.
Ensure that the calendar and tabs are synchronized with their media queries. Ensure that the elements are visually balanced at all points during the viewport shift.
Scroll Save
- Search for "CS" in the "search courses tab."
- Scroll down at least two full screen heights, and take note of the courses displayed.
- Switch to the "map" tab.
- Switch back to the "search" tab and verify that the same courses are displayed.
Project
Continuation of #999. I was originally trying to review it and figure out how I would actually implement it so i could provide feedback, but it ended up covering a larger scope.
Resolves #976