shadcn / next-contentlayer

A template with Next.js 13 app dir, Contentlayer, Tailwind CSS and dark mode.
https://next-contentlayer.vercel.app
678 stars 91 forks source link

Viewing on mobile was cutting off , left & right sides #4

Closed theapplegates closed 1 year ago

theapplegates commented 1 year ago

I am not sure how to make a pull request but I fixed the cutting off the left and right side when viewing on a cell phone.

I added this to globals.css

@media only screen and (max-width: 767px) {
    body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

Now the site is fixed for mobile/cell phones.

Paul

theapplegates commented 1 year ago

This was also my first time using Chat-GPT to solve a problem.

Screen Shot 2023-05-05 at 6 35 40 AM
shadcn commented 1 year ago

This is awesome. I think we can also do it with Tailwind CSS classes. Let me see if I can add the fix for it.

Thanks for your help Paul! Appreciate it.

shadcn commented 1 year ago

Done. Thank you.

theapplegates commented 1 year ago

Thanks. I appreciate you making it.