Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX make theme switcher have consistent widths #1651

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

Charlie-XIAO
Copy link
Contributor

Fixes #1649.

The discrepancy is likely caused by upgrading fontawesome 6.1.2 to 6.5.1. In 6.1.2 fa-sun, fa-moon, and fa-circle-half-stroke are all 1:1 with (viewBox: 0 0 512 512). In 6.5.1 fa-sun and fa0-circle-half-stroke seem to be unchanged but fa-moon changedd to 3:4 (viewBox: 0 0 384 512).

Copy link
Collaborator

@12rambau 12rambau left a comment

Choose a reason for hiding this comment

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

  1. I would have never seen
  2. Excellent solution, simple and very convenient in case they decide to change their ratio again.

Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

Wow I had no idea this existed, here's the MDN for folks that are interested:

https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio

Looks good to me

@12rambau 12rambau merged commit a135c20 into pydata:main Jan 19, 2024
17 of 18 checks passed
@Charlie-XIAO Charlie-XIAO deleted the theme-switch-fixed-width branch January 19, 2024 06:56
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.

Light/dark theme switching button not of fixed width
3 participants