timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
7.43k stars 1.87k forks source link

feat: Move conditional rendering inside svg to prevent layout shift #858

Closed Spiteless closed 3 months ago

Spiteless commented 5 months ago

While the ThemeSwitch mounts there's a potential for the buttons to be shifted to the left if it loads in slowly.

Moving the conditional rendering inside the <svg/> keeps the spacing open for the button to load in properly.

vercel[bot] commented 5 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @timlrx on Vercel.

@timlrx first needs to authorize it.

vercel[bot] commented 3 months ago

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

Name Status Preview Comments Updated (UTC)
tailwind-nextjs-starter-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 31, 2024 2:42pm
timlrx commented 3 months ago

Thanks for the fix!