Disable focus points for letterboxed media

This commit is contained in:
Thibaut Girka authored and ThibG committed 2018-09-04 13:31:55 +02:00
1 parent 9998271a5b
commit 8622dccaf1
1 file changed
+1 -1
@@ -163,7 +163,7 @@ class Item extends React.PureComponent {
sizes={sizes}
alt={attachment.get('description')}
title={attachment.get('description')}
style={{ objectPosition: `${x}% ${y}%` }}
style={{ objectPosition: letterbox ? null : `${x}% ${y}%` }}
/>
</a>
);