Browse Source

Disable focus points for letterboxed media

closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
8622dccaf1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/components/media_gallery.js

+ 1
- 1
app/javascript/flavours/glitch/components/media_gallery.js View File

@ -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>
);

Loading…
Cancel
Save