-
Notifications
You must be signed in to change notification settings - Fork 55
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
Images with height attribute set do not preserve aspect ratio #229
Comments
This is regression after facebook/docusaurus#6989 @slorber I'm not even sure why you removed the |
I don't understand the issue, can you show a screenshot where it's clearly visible? I didn't remove if an image is on the landing page, it's the user's responsibility to apply the appropriate CSS to it? Not against reverting this change (maybe it's a good "CSS reset" that we can apply globally but I checked a few popular resets and this rule is not one of them) but I'd like to understand a concrete issue first |
Weirdly the issue is gone on the production website now... It was surely an issue a week ago... |
Afaik, If both rules should go together, that BTW we also have users complaining about those global CSS rules being applied by Infima, so I'd rather actually remove those 🤷♂️ |
Hence this issue is in Infima🤓
I think it's fine. We don't need to worry about every complaint, there will always be weird use-cases and we just need to make best choices for most people (i.e. easily-applied styles) |
I took a look and it seems the last commit with that bug was #7075 on Docusaurus (you can see it at https://deploy-preview-7075--docusaurus-2.netlify.app/docs/advanced/architecture), but the commit
I guess it's fine for the |
Not sure if this should have gone here or in the Docusaurus repo, but anyway.
while images are given
max-width: 100%
, their height is unspecified, so any height attribute assigned to an image stretches the image. this issue is seen e.g. on the main Docusaurus site at https://docusaurus.io/docs/advanced/architecture.A simple fix would be to add
height: auto
to image tags as well.The text was updated successfully, but these errors were encountered: