Only need focal positioning if not show original media
This commit is contained in:
parent
b3941462d6
commit
5797b9bc38
|
@ -60,7 +60,7 @@ function Media({ media, showOriginal, onClick }) {
|
|||
backgroundImage: `url(${previewUrl})`,
|
||||
backgroundSize: 'contain',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
backgroundPosition: focalBackgroundPosition || 'center',
|
||||
backgroundPosition: 'center',
|
||||
aspectRatio: `${width}/${height}`,
|
||||
width,
|
||||
height,
|
||||
|
|
Loading…
Reference in a new issue