mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 07:11:15 +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})`,
|
backgroundImage: `url(${previewUrl})`,
|
||||||
backgroundSize: 'contain',
|
backgroundSize: 'contain',
|
||||||
backgroundRepeat: 'no-repeat',
|
backgroundRepeat: 'no-repeat',
|
||||||
backgroundPosition: focalBackgroundPosition || 'center',
|
backgroundPosition: 'center',
|
||||||
aspectRatio: `${width}/${height}`,
|
aspectRatio: `${width}/${height}`,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
|
|
Loading…
Add table
Reference in a new issue