-
Notifications
You must be signed in to change notification settings - Fork 159
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
Height is incorrect #23
Comments
Hello! height is 3 pixels greater than original - |
srmagura
added a commit
that referenced
this issue
Oct 9, 2021
Another way to do it is by directly altering the style: .react-loading-skeleton {
line-height: unset !important;
} I use |
Bentroen
added a commit
to OpenNBS/NoteBlockWorld
that referenced
this issue
Jun 4, 2024
Line height must be set to 1 on the parent container in order for an element's height to match its exact width. See: dvtng/react-loading-skeleton#23 (comment)
it works THANKS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://codesandbox.io/embed/v888k169wl
The skeleton ends up being 1 pixel taller than given in props. A simple workaround is to override the skeleton element's line-height
The text was updated successfully, but these errors were encountered: