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(gatsby-source-contentful): Calculate fixed image width if only height supplied #24393

Closed
wants to merge 237 commits into from

Conversation

mrseanbaines
Copy link
Contributor

@mrseanbaines mrseanbaines commented May 23, 2020

Description

Fixes an issue where gatsby-source-contentful returns empty srcSet and srcSetWebp when querying fixed images with only height argument.

Before:

image

After:

image

Related Issues

Fixes #24392

@mrseanbaines mrseanbaines requested a review from a team as a code owner May 23, 2020 18:39
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 23, 2020
@mrseanbaines mrseanbaines changed the title Calculate fixed image width if necessary fix(gatsby-source-contentful): Calculate fixed image width if only height supplied May 23, 2020
@LekoArts LekoArts added status: needs core review Currently awaiting review from Core team member and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 25, 2020
axe312ger
axe312ger previously approved these changes Jun 10, 2020
Copy link
Collaborator

@axe312ger axe312ger left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for the work :)

* Previously scrolling or swiping inside the navigation
sidebar could result in main content moving. Fixed for
most browsers with overflow-behavior: contain

Resolves #24255

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
@mrseanbaines
Copy link
Contributor Author

No problemo @axe312ger. Any idea why the tests are failing/hanging? They look very unrelated to these changes.

muescha and others added 18 commits June 10, 2020 12:46
* Add Sourcing from Flotiq documentation entry

* fix whitespace

* prettier

* fix prettier, again

* add headless-cms table entry

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>

* `Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Apply suggestions from code review

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* fix improper API key reference

* Update docs/docs/sourcing-from-flotiq.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* add blogpost template

* simplify blog-post template

* add full gatsby-node.js example

* Apply suggestions from code review

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* prettier, update img alt attribute

* remove empty paragraph

* add dotenv to gatsby-config example

Co-authored-by: Andrzej WP <andrzej@codewave.pl>
Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>
Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
* Close #24479

* chore: format

* Update docs/docs/how-gatsby-works-with-github-pages.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/how-gatsby-works-with-github-pages.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/how-gatsby-works-with-github-pages.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/how-gatsby-works-with-github-pages.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

* Update docs/docs/how-gatsby-works-with-github-pages.md

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
* Add Gatsby Cloud subsection

* 'Gatsby.js' → 'Gatsby'

* Add more benefits of Gatsby Cloud

* Use straight quotes instead of curly

* Address requested changes

Github → GitHub, add 'shell' to code blocks, relative URLs, make Gatsby Cloud H3 level

* Make Gatsby Cloud H3 level

Co-authored-by: Aisha Blake <aisha.g.blake@gmail.com>

Co-authored-by: Aisha Blake <aisha.g.blake@gmail.com>
* feat(recipes): add gitlab-ci-cd recipe to cli list

* Update packages/gatsby-recipes/src/cli.js

Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>

Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
* feat(recipes): add github pages deployement with travis

* Update travis-deploy-github-pages.mdx

* review

* Tweak wording

* Update cli.js

Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
* updating content and screenshots

* Fix linting

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
abhishekjakhar and others added 24 commits June 24, 2020 23:13
…25078)

* convert ImagePlaceholder used in guidelines to theme-ui

* update

* update

* combining imports
* Add WebAIM Million announcement Gatsby is most accessible framework

* create frontmatter for WebAIM blog post

* Update index.md

* Update index.md

* chore: format

* fix typo

* Update index.md

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
* Add explanation of Site.siteMetadata field

* chore: format

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
* chore(showcase): Add erp.laputan.com.au

* fix category for dangerbot

* update title for dangerbot

Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
I know it's nitpicky, but just wanted to make it follow the Sass brand guidelines. 😄
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
* use gatsby-plugin-react-svg for icons

* use elements instead of component names

* update asset imports

* v2 icon

* featured-sites

* add thingy

* svg
…#25112)

* set mimeTypes extension for Mdx type definition

* whoops
…ill in other schema typings (#25113)

* Add mimeTypes and other directives to fill in files

* add placeholder type
* convert BoxWithBorder to theme-ui

* update the border css rules
* chore(www): Tidy `space`, `color`, fix `:hover`

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

* chore(www): Use `sidebarItemMinHeight` token

* fix(www): `TitleButton` indention, padding-right

This is currently not in use so will leave it alone, but this thing's height and `hover`, `active` states are also off a little.

* chore(www): Tidy `space` token value usage

* chore(www): Tidy `space` token value usage

Not really in use either, but let's fix the "pull in page margin" thing.
* refactor pullquote component

* Fix sizes

* Simplify styles for cross axis

* Add some documentation on the pullquote
* chore(www): Refactor to `sx`

* rm `@emotion/styled`

* newlines, more concise, fix a d'oh

not bored enough for responsive array things tho ;)

* OK, bored enough

🤔

* lol

* time for breakfast

* inline styles 😛 null, null, null, null
* chore(www): Refactor to `sx`

* newlines

* 🙄

* 🙃

* 💩

* combine imports

* rm className, spread love

* 🙀

* mv inline

* 🤡
…byjs/gatsby into fix-gatsby-source-contentful-srcSet
@axe312ger
Copy link
Collaborator

@mrseanbaines Hey Sean, why did you close this? Did you have issues rebasing on master?

@mrseanbaines
Copy link
Contributor Author

@axe312ger I'm not sure what happened but I somehow ended up with hundreds of commits worth of changes 😄. I'll fix this and reopen when I get a sec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs core review Currently awaiting review from Core team member topic: source-contentful Related to Gatsby's integration with Contentful
Projects
None yet