Skip to content

Conversation

@Thayorns
Copy link
Contributor

@Thayorns Thayorns commented Jun 29, 2025

Summary

"Closes #10"

We have this div classname='mx-auto flex min-h-[100dvh] items-center justify-center bg-gray-100' wrapper that is flexed & justified center.

Then we have inner div className="min-h-[750px] w-full" with fixed min-height 750 that slightly ruins flexes above.

I set min-height as "auto" and margin: 80px auto; so the central content never pushes top and bottom navigation on my local end.

I have tested it on a smaller iphone S mode and everything is fine. The scroll appearing is correct because of the main content height.

core-top-margin
core-bottom-margin


Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🛠 Refactor
  • 🧪 Test improvement
  • 📝 Docs update
  • ⚙️ CI/tooling

Checklist

  • All tests pass (pnpm test)
  • Linting and formatting pass (pnpm lint && pnpm format)
  • PR title follows semantic commit format (feat:, fix:, etc.)
  • Changes are documented (README, JSDoc, or comments if needed)
  • Ready for review — not a draft

Notes for Reviewer

If it fixes the problem with top\bottom paddings - let me know!

@vercel
Copy link
Contributor

vercel bot commented Jun 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-zero-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 30, 2025 2:10pm

"@vercel/analytics": "^1.5.0",
"clsx": "^2.1.1",
"framer-motion": "^12.19.2",
"motion": "^12.16.0",
Copy link
Member

@Austin1serb Austin1serb Jun 30, 2025

Choose a reason for hiding this comment

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

Remove framer-motion. motion, and framer-motion are now the same lib.

replace "motion": "^12.16.0",
with
"motion": "12.18.1",

the ^ carrot in the json file downloads the latest package. the latest update is what is causing the Error: It's currently unsupported to use "export *" in a client boundary. Please use named exports instead. Error.

@@ -1,3 +1,4 @@
'use client';
Copy link
Member

@Austin1serb Austin1serb Jun 30, 2025

Choose a reason for hiding this comment

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

remove use client from the layout. (it is important we keep our app SSR)

@Austin1serb
Copy link
Member

@Thayorns Thank you once again for your PR. it looks Great😎.

after looking into it. I understand why you added "use client" to the layout.

Motion is no longer working with Next 15 build. as noted in motion issue #3211

until they fix that problem, please follow the instructions provided in the review and the PR will be ready for approval. thanks for your hard work.

@Thayorns
Copy link
Contributor Author

@Austin1serb, Thanks for the clarification. The motion library in package.json is now set to "motion": "12.18.1", and the use client flag has been removed to not break the SSR feature.

@Austin1serb Austin1serb merged commit 41bf9e2 into react-zero-ui:main Jun 30, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Improve Mobile Padding on Demo Page

2 participants