mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Only need focal positioning if not show original media
This commit is contained in:
parent
b3941462d6
commit
5797b9bc38
1 changed files with 1 additions and 1 deletions
|
@ -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