playground: prevent component cutoff on small screen heights#6112
playground: prevent component cutoff on small screen heights#6112maximepvrt wants to merge 1 commit intonuxt:v4from
Conversation
📝 WalkthroughWalkthroughThis 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)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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.
commit: |
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
📚 Description
📝 Checklist