Skip to content

Conversation

@FireIsGood
Copy link
Contributor

Fixes #469

Previously, the spinner would not resize to match its width and height. This was due to the wrong unit being used for the background image.

Comparison

(Outlines added on these images for clarity, but not actually in the changes)

Before:

image

After:

image

Info for CSS nerds

This is a single character change to make 1rem into 1em. The difference is that rem does not scale with the element's font size compared to em. The width and height of the element are set with em, so changing this makes it scale to fit the box correctly.

lucaslarroche and others added 3 commits February 17, 2024 10:52
The loading spinner was not sized to the actual element's size due to
the units being used incorrectly.
@FireIsGood
Copy link
Contributor Author

You may have to undo the build steps to merge multiple pull requests, so feel free to do that on the provided branch.

@lucaslarroche lucaslarroche changed the base branch from main to dev March 3, 2024 03:07
@lucaslarroche lucaslarroche self-requested a review March 3, 2024 03:08
Copy link
Member

@lucaslarroche lucaslarroche left a comment

Choose a reason for hiding this comment

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

@FireIsGood, thank you.
Great change! I will merge your PR and release a new patch later today.

@lucaslarroche lucaslarroche merged commit 4aa2c14 into picocss:dev Mar 3, 2024
@lucaslarroche lucaslarroche mentioned this pull request Mar 3, 2024
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.

Spinner not fully visible in the <code> element

2 participants