Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@naitokosuke
Copy link
Contributor

@naitokosuke naitokosuke commented Jan 8, 2026

Overview

The next link was aligned to the left instead of the right on tablet-sized screens (like iPad) when prev link is missing.

スクリーンショット 2026-01-08 19 17 03

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

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to 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.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 8, 2026

npm i https://pkg.pr.new/@nuxt/ui@5833

commit: f554949

@benjamincanac benjamincanac changed the title chore: align next link to right on tablet when prev is missing fix(ContentSurround): align next link to right on tablet when prev is missing Jan 8, 2026
Copy link
Member

@benjamincanac benjamincanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! Thanks 😊

@benjamincanac benjamincanac changed the title fix(ContentSurround): align next link to right on tablet when prev is missing fix(ContentSurround): align next link to right on tablet without prev Jan 8, 2026
@benjamincanac benjamincanac merged commit b3adccc into nuxt:v4 Jan 8, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants