diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-09-03 21:28:40 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-09-04 13:31:55 +0200 |
commit | 8622dccaf1a2380562284999c395592032a8f5ba (patch) | |
tree | c4822cb56a4fe514f3b8b4ae99587910fea232a9 /app/javascript/flavours | |
parent | 9998271a5bdc892b2c949f049a5f736239d290e7 (diff) |
Disable focus points for letterboxed media
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/components/media_gallery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js index fa27757f3..1de12c5e0 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.js +++ b/app/javascript/flavours/glitch/components/media_gallery.js @@ -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> ); |