-
Notifications
You must be signed in to change notification settings - Fork 4
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
Improve scigateway mobile support #1281
Conversation
Drawer now behaves differently on mobile - Drawer is closed by default - Drawer overlaps the content instead of pushing the content aside - Drawer can be dismissed by clicking outside of it
App bar now behaves differently on mobile to prevent overcrowding: - Page links and action buttons are collapsed into a new overflow menu - Settings menu is embedded into the overflow menu for a unified experience
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #1281 +/- ##
===========================================
- Coverage 96.98% 96.59% -0.40%
===========================================
Files 43 47 +4
Lines 1594 1701 +107
Branches 432 474 +42
===========================================
+ Hits 1546 1643 +97
- Misses 45 54 +9
- Partials 3 4 +1
☔ View full report in Codecov by Sentry. |
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.
Looking good, just a minor issue:
The facility card is squished on mobile:
But otherwise, I believe it addresses all the issues raised in #1254
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.
Actually ignore me - that's me being dumb. The card is only that small because the text content is small - once you fill it with more words in the description it sizes properly 😅
I actually think it should take up the whole width regardless of the content, as it looks more natural imo. Good catch! |
Description
This PR improves scigatway mobile support by tweaking the overall UI layout on mobile. The following components are modified:
Top app bar
The app bar contains several elements:
This is fine on larger viewports, but on smaller viewports there is not enough space to show everything at once. This PR introduces a new mobile overflow menu that consolidates page links, action buttons, and the settings menu into a single menu, accessible through a new menu overflow button that is only visible on small viewports. The app bar retains the current layout on larger viewports.
New mobile overflow menu:
Drawer
Currently, on larger viewports, the drawer appears next to the main content. On smaller viewports, however, this causes the main content to be too narrow to be readable or usable. This PR tweaks the behavior of the drawer so that it overlaps the main content instead. The drawer is dismissable by clicking outside of the drawer.
The drawer is also changed so that it is hidden by default on small viewports.
New drawer:
Home page
This PR improves the layout on the home page so that texts are not overflowing and are comfortably readable.
Footer
Footer is now hidden on mobile. I don't know if it is required to show the footer on mobile. If it is, a mobile version of the footer needs to be designed.
Testing instructions
Add a set up instructions describing how the reviewer should test the code
Agile board tracking
Closes #1254