Skip to content

fix(Slideover): only cap width from sm breakpoint - #7156

Merged
benjamincanac merged 1 commit into
v4from
fix/slideover-max-width
Oct 7, 2026
Merged

benjamincanac merged 1 commit into
v4from
fix/slideover-max-width

Conversation

@benjamincanac

Copy link
Copy Markdown
Member

🔗 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

A left or right Slideover is capped at max-w-md on every width, but its ring and shadow only start at sm. Between 448px and 640px the panel no longer fills the screen and has no visible edge.

The cap now starts at sm as well, so the Slideover is full width below it. This also applies to the Header, DashboardSidebar and Sidebar menus in slideover mode.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ui Ready Ready Preview Oct 7, 2026 10:08am UTC
ui-repl Ready Ready Preview Oct 7, 2026 10:08am UTC

Request Review

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Client output of the apps in test/bundle, compared to the base branch.

Fixture JS (gzip) CSS (gzip)
nuxt 115.6 kB 27.2 kB (+1 B, +0.0%)
nuxt-detection 115.6 kB 10.5 kB
nuxt-full 836.4 kB (-2 B, -0.0%) 27.4 kB (+1 B, +0.0%)
vue 92.3 kB 25.3 kB
vue-detection 92.3 kB 8.7 kB
Raw sizes
Fixture JS CSS
nuxt 333.4 kB 200.6 kB (+4 B, +0.0%)
nuxt-detection 333.4 kB 61.3 kB
nuxt-full 2643.5 kB (+6 B, +0.0%) 200.9 kB (+4 B, +0.0%)
vue 277.9 kB 198.6 kB (+4 B, +0.0%)
vue-detection 277.9 kB 57.8 kB

@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7711f7e9-0201-4ae6-aa29-06ef7d1ebc2a
📥 Commits

Reviewing files that changed from the base of the PR and between 765a4f5 and 7ef1499.

⛔ Files ignored due to path filters (6)
  • test/components/__snapshots__/DashboardSidebar-vue.spec.ts.snap is excluded by !**/*.snap
  • test/components/__snapshots__/DashboardSidebar.spec.ts.snap is excluded by !**/*.snap
  • test/components/__snapshots__/Header-vue.spec.ts.snap is excluded by !**/*.snap
  • test/components/__snapshots__/Header.spec.ts.snap is excluded by !**/*.snap
  • test/components/__snapshots__/Slideover-vue.spec.ts.snap is excluded by !**/*.snap
  • test/components/__snapshots__/Slideover.spec.ts.snap is excluded by !**/*.snap
📒 Files selected for processing (1)
  • src/theme/slideover.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The right and left slideover variants now use sm:max-w-md instead of max-w-md. The maximum-width constraint therefore applies from the sm breakpoint.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 7ef14

The breakpoint change makes non-inset side panels full-width below sm while preserving inset sizing. No known merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: the Slideover width cap now starts at the sm breakpoint.
Description check ✅ Passed The description explains the width issue and the breakpoint change, which match the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codspeed

codspeed Bot commented Oct 7, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing fix/slideover-max-width (7ef1499) with v4 (765a4f5)

Open in CodSpeed

@pkg-pr-new

pkg-pr-new Bot commented Oct 7, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/ui@7156

commit: 7ef1499

@benjamincanac
benjamincanac merged commit 608a3d3 into v4 Oct 7, 2026
35 checks passed
@benjamincanac
benjamincanac deleted the fix/slideover-max-width branch October 7, 2026 10:20

This branch was successfully deployed

2 active deployments
Preview – ui — 7ef14996 Deployed Oct 7, 2026 by vercel[bot]
Preview – ui-repl — 7ef14996 Deployed Oct 7, 2026 by vercel[bot]
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.

1 participant