Skip to content

Commit

Permalink
Remove obsolete fallback value for backgroundPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed May 2, 2019
1 parent a6848b4 commit c41bd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/blocks/amp-story-page/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class EditPage extends Component {

const style = {
backgroundImage: IMAGE_BACKGROUND_TYPE === mediaType && mediaUrl ? `url(${ mediaUrl })` : undefined,
backgroundPosition: IMAGE_BACKGROUND_TYPE === mediaType && focalPoint ? `${ focalPoint.x * 100 }% ${ focalPoint.y * 100 }%` : '50% 50%',
backgroundPosition: `${ focalPoint.x * 100 }% ${ focalPoint.y * 100 }%`,
backgroundRepeat: 'no-repeat',
backgroundSize: 'cover',
};
Expand Down

0 comments on commit c41bd8d

Please sign in to comment.