Skip to content

playground: prevent component cutoff on small screen heights#6112

Open
maximepvrt wants to merge 1 commit intonuxt:v4from
maximepvrt:fix-playground
Open

playground: prevent component cutoff on small screen heights#6112
maximepvrt wants to merge 1 commit intonuxt:v4from
maximepvrt:fix-playground

Conversation

@maximepvrt
Copy link
Contributor

his fixes the playground so components (like the PricingTable) don't get cut off at the top when the screen height is too small.

🔗 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 have linked an issue or discussion.
  • I have updated the documentation accordingly.

@github-actions github-actions bot added the v4 #4488 label Feb 27, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 27, 2026

📝 Walkthrough

Walkthrough

This pull request refactors the layout structure in two Vue framework implementations. The changes remove the 'justify-center items-center' classes from the DashboardPanel/UDashboardPanel body configurations and wrap the page components (NuxtPage and RouterView) in new div containers that apply the same centering classes along with flex layout, minimum height, and shrink constraints. The visual centering behavior is preserved while reorganizing where these styles are applied in the DOM hierarchy.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description is directly related to the changeset, explaining that the fix prevents components from being cut off at the top when screen height is too small.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title 'playground: prevent component cutoff on small screen heights' is directly related to the main change: wrapping components in a centered flex container with min-h-full to prevent cutoff on small screens.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@playgrounds/nuxt/app/app.vue`:
- Around line 63-65: The new Nuxt playground wrapper div (the element with class
"flex flex-col items-center justify-center min-h-full shrink-0") and its child
component <NuxtPage /> are missing required data-slot attributes; add
data-slot="body" on the wrapper div and add a data-slot attribute on the
NuxtPage element (e.g., data-slot="nuxt-page") so all template elements in this
Vue component include the required data-slot="name" attributes.

In `@playgrounds/vue/src/app.vue`:
- Around line 73-77: The template elements in this block (the outer div, the
Suspense component and the RouterView component) are missing required data-slot
attributes; add data-slot attributes to each element—e.g., add
data-slot="container" on the outer div, data-slot="suspense" on the <Suspense>
element, and data-slot="router-view" on the <RouterView> element—so all template
elements in this snippet follow the project convention for Vue (*.vue) files.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2438d45 and a215516.

📒 Files selected for processing (2)
  • playgrounds/nuxt/app/app.vue
  • playgrounds/vue/src/app.vue

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 27, 2026

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

commit: a215516

@benjamincanac benjamincanac changed the title fix(playground): fix top cutoff issue on small heights playground: prevent component cutoff on small screen heights Feb 27, 2026
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