-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#11724] Admin page header tabs do not fit header at certain screen sizes #11799
[#11724] Admin page header tabs do not fit header at certain screen sizes #11799
Conversation
Thank you for contributing to TEAMMATES! While this does solve the visual bug, grouping every admin tab under a single "Utilities" dropdown may not be ideal UX-wise. There are two possible ways to expand on this solution:
@damithc would like your input on this, which presentation would you prefer? |
I prefer 1. |
Thanks, @zhaojj2209 and @damithc :) |
Grouping the "Timezone Listing" and "Usage Statistics" tabs together should be sufficient. |
Also note that the problem occurs only during a certain width range. As I reduce the browser width incrementally, this is what happens: No problem, all menu is shown in one row So, the cause may not be the number of items in the menu but something else. |
Note: I reverted to the original navbar for these findings
So the issue seems to be the app_admin dropdown overlapping. |
This is caused because the amount of space allocated to the nav items changes at certain breakpoints (in fact, this issue occurs for some of the other non-admin pages as well). So two factors at play here, navbar items taking up too much space + space allocated for navbar items might not be enough at certain breakpoints. While this could be solved by tweaking the spacing at each breakpoint, in my opinion this should not be the only solution (could be part of the solution) because:
In my opinion, the primary way of solving this should be to reduce the number of navbar items in a row by grouping related nav items together (which is what is being done here). In addition to this, we could tweak the spacing slightly if necessary (across the different pages as well to maintain consistency). |
After some digging, I think this may be due to an issue in with the way we styles are defined, see below snippet from
The bootstrap breakpoints indicate the lower bound of the size range (e.g. |
Thanks for the suggestion! I changed the value to 15px and it works. |
…ge.component.scss.
The tabs are indeed on the same row now, but this fix doesn't solve the underlying issue, which is that the extra margin is added at 992px even though it's not supposed to be. Rather than change the margin, I would suggest changing |
…onflict with Bootstrap min-width.
Ah yes. Makes sense. Made that change. |
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.
Almost there, just one last nit from me
Fixed it now. |
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.
LGTM!
Great 😊 |
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.
LGTM. Thanks for your contribution!
Fixes #11724
Added "Utilities" dropdown to group admin tools. Open to a different name if appropriate.