Skip to content

Commit

Permalink
use maxWidth & maxHeight instead of width & height
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Sep 16, 2019
1 parent b26dc3a commit b5183ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-image/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ class Image extends React.Component {
style={{
position: `relative`,
overflow: `hidden`,
height: maxHeight,
width: maxWidth,
maxHeight: maxHeight,
maxWidth: maxWidth,
...style,
}}
ref={this.handleRef}
Expand Down

0 comments on commit b5183ce

Please sign in to comment.