fix(ContentSurround): align next link to right on tablet without prev #5833
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
The next link was aligned to the left instead of the right on tablet-sized screens (like iPad) when prev link is missing.
Fix
Before:
When prev link is missing, the placeholder only becomes visible at lg breakpoint (hidden lg:block). However, the grid switches to 2 columns at sm breakpoint (sm:grid-cols-2). This mismatch causes the next link to be placed in the first column (left side) between sm and lg breakpoints, since the placeholder is hidden and doesn't occupy the first grid cell.
before.mov
After:
after.mov
🔗 Linked issue
❓ Type of change
📚 Description
📝 Checklist
I searched for "iPad", "tablet", and "responsive breakpoint" but didn't find any related issues. It seems this issue hasn't been reported before.
[ ] I have linked an issue or discussion.[ ] I have updated the documentation accordingly.