-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Art Direction with Gatsby Image has strange behavior #19702
Comments
That's to enforce the aspect ratio iirc, which is a feature of fluid images afaik(I haven't used Gatsby or worked with the If the issue is only from different images(with different aspect ratios), then the problem is likely due to the Art Direction feature. IIRC, the code defaults to the 1st images aspect ratio: gatsby/packages/gatsby-image/src/index.js Line 436 in 0da6dbb
The remaining issues |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Summary
I am trying to use art-direction with Gatsby Image but for my mobile, tablet, and ipadPro images... they are not using their entire height... only the height of the content that overlays them.
See below...
Relevant information
I'm using Styled Components.
Here is my sources array:
I am using fluid images and just like the docs say... I am passing sources to the fluid prop in Gatsby Image.
My query for the image uses maxWidth, maxHeight, and quality. Nothing else.
I have content over my images using CSS Grid so they overlap using the same grid column and row. But the image's height is only as big as the content that overlays it... when you think it should be the height of the image.
Any ideas?
This works in a normal React environment using Styled Components.
The image should extend to the bottom of the screen... it's 1300 pixels tall.
The text was updated successfully, but these errors were encountered: