Disable focus points for letterboxed media

lolsob-rspec
Thibaut Girka 2018-09-03 21:28:40 +02:00 committed by ThibG
parent 434a287861
commit 8099901c9a
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class Item extends React.PureComponent {
sizes={sizes} sizes={sizes}
alt={attachment.get('description')} alt={attachment.get('description')}
title={attachment.get('description')} title={attachment.get('description')}
style={{ objectPosition: `${x}% ${y}%` }} style={{ objectPosition: letterbox ? null : `${x}% ${y}%` }}
/> />
</a> </a>
); );