diff --git a/app/soapbox/components/media_gallery.js b/app/soapbox/components/media_gallery.js index b526655a3..352d107e7 100644 --- a/app/soapbox/components/media_gallery.js +++ b/app/soapbox/components/media_gallery.js @@ -15,6 +15,7 @@ import { getSettings } from 'soapbox/actions/settings'; import Icon from 'soapbox/components/icon'; import StillImage from 'soapbox/components/still_image'; +const ATTACHMENT_LIMIT = 4; const MAX_FILENAME_LENGTH = 45; const messages = defineMessages({ @@ -38,6 +39,8 @@ class Item extends React.PureComponent { visible: PropTypes.bool.isRequired, dimensions: PropTypes.object, autoPlayGif: PropTypes.bool, + last: PropTypes.bool, + total: PropTypes.number, }; static defaultProps = { @@ -121,7 +124,7 @@ class Item extends React.PureComponent { } render() { - const { attachment, standalone, visible, dimensions, autoPlayGif } = this.props; + const { attachment, standalone, visible, dimensions, autoPlayGif, last, total } = this.props; let width = 100; let height = '100%'; @@ -222,6 +225,11 @@ class Item extends React.PureComponent { return (