这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@trillium
Copy link
Contributor

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
Copy link

vercel bot commented Feb 19, 2024

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

@timlrx first needs to authorize it.

@trillium trillium force-pushed the fix_layout_shift_on_ThemeSwitch_load branch from 6263b61 to 20f26bb Compare February 19, 2024 21:21
@trillium trillium force-pushed the fix_layout_shift_on_ThemeSwitch_load branch from 20f26bb to 8b357c3 Compare February 19, 2024 21:21
@vercel
Copy link

vercel bot commented Mar 31, 2024

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
Copy link
Owner

timlrx commented Mar 31, 2024

Thanks for the fix!

@timlrx timlrx merged commit c65ac01 into timlrx:main Mar 31, 2024
Meez25 pushed a commit to Meez25/Blog that referenced this pull request Jun 17, 2024
…eSwitch_load

feat: Move conditional rendering inside svg to prevent layout shift
bhiwagade-rahul pushed a commit to bhiwagade-rahul/tailwind-nextjs-starter-blog that referenced this pull request Sep 22, 2025
…eSwitch_load

feat: Move conditional rendering inside svg to prevent layout shift
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.

2 participants