-
Notifications
You must be signed in to change notification settings - Fork 4.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
Fix: Impossible to see pagination on viewports between small and medium. #64844
Fix: Impossible to see pagination on viewports between small and medium. #64844
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -907 B (-0.05%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
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 think the root cause is probably that height:100%
is applied to the .edit-site-page
element, which pushes the pagination down.
When the browser width is 600px or less, the pagination is certainly accessible, but double scrolling occurs and we cannot access it without manipulating the outer scrollbar:
daa2ef452f09c2432c5d94df2684b943.mp4
When the browser width is 600px or more, the .edit-site
element is fixed in position, so the outer scrollbar disappears and pagination might become inaccessible.
The mobile layout may need to be adjusted overall in the future, but for now it seems to work fine if we subtract the height of the header from the height of the .edit-site-page
element, and it also fixes the double scrollbar issue.
.edit-site-page {
height: calc(100% - #{$header-height});
@include break-medium() {
height: 100%;
}
}
5ac61a42c6fc05ecd48de4c8f2ef98ab.mp4
Additionally, I discovered an issue with the floating bulk actions menu overlapping with pagination, but this should be resolved once #64268 ships:
…and medium." This reverts commit 5ef2631.
Good suggestion @t-hamano. I pushed that change, hope you don't mind @jorgefilipecosta. |
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.
Thank you @t-hamano and @jameskoster for this fix. Things seem to work well on the tests I did 👍
…um. (WordPress#64844) Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
This fixes an already existing issue reported by @jameskoster at #64268 (comment). For viewports between 600 and 782, it is totally impossible to use the pagination on trunk.
Testing Instructions
I changed the window viewport size to 650px.
On a page with more than 10 items, I configured the view to 10 items per page.
I verified the pagination UI was available (on the trunk it is not).