Skip to content

Commit

Permalink
Revert "fix(gatsby-plugin-image): Apply inline styles and img size" (#…
Browse files Browse the repository at this point in the history
…29602)

This reverts commit 3f7f06c.
  • Loading branch information
ascorbic committed Feb 19, 2021
1 parent b62dd8b commit 8d0f48f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions packages/gatsby-plugin-image/src/components/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ export function getWrapperProps(

let className = `gatsby-image-wrapper`

// If the plugin isn't installed we need to apply the styles inline
if (!global.GATSBY___IMAGE) {
wrapperStyle.position = `relative`
wrapperStyle.overflow = `hidden`
}

if (layout === `fixed`) {
wrapperStyle.width = width
wrapperStyle.height = height
Expand Down
2 changes: 0 additions & 2 deletions packages/gatsby-plugin-image/src/components/lazy-hydrate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ export function lazyHydrate(
)}
<MainImage
{...(props as Omit<MainImageProps, "images" | "fallback">)}
width={width}
height={height}
className={imgClassName}
{...getMainProps(
isLoading,
Expand Down

0 comments on commit 8d0f48f

Please sign in to comment.