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

Conversation

@Misaki-Akeno
Copy link
Contributor

Fix button alignment in ThemeSwitch component

This PR fixes the alignment issue of the button within the ThemeSwitch component. The button was not properly centered within its container, causing it to appear misaligned in the navigation bar. This fix ensures that the button is vertically centered.

Changes Made:

  • Applied flex layout and alignment classes to the div containing Menu.Button in ThemeSwitch.tsx.

Before:

image

After:

image

@vercel
Copy link

vercel bot commented Jul 1, 2024

@cxf213 is attempting to deploy a commit to the timlrx's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jul 10, 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 Jul 10, 2024 1:31pm

@timlrx
Copy link
Owner

timlrx commented Jul 10, 2024

Thanks for the fix! In the future, do run the code through prettier before committing.

@timlrx timlrx merged commit 405742b into timlrx:main Jul 10, 2024
bhiwagade-rahul pushed a commit to bhiwagade-rahul/tailwind-nextjs-starter-blog that referenced this pull request Sep 22, 2025
Fix button alignment in ThemeSwitch component
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