0
0
Fork 0

In detail status view, display attachment uncropped if there's only one (#5054)

* In detail status view, display attachment uncropped if there's only one

* Make media spoiler the size of the media it hides, enable on static
This commit is contained in:
Eugen Rochko 2017-09-24 05:58:30 +02:00 committed by GitHub
parent b2820c3913
commit 2f079573ed
6 changed files with 71 additions and 10 deletions

View file

@ -61,7 +61,16 @@ export default class DetailedStatus extends ImmutablePureComponent {
/>
);
} else {
media = <MediaGallery sensitive={status.get('sensitive')} media={status.get('media_attachments')} height={300} onOpenMedia={this.props.onOpenMedia} autoPlayGif={this.props.autoPlayGif} />;
media = (
<MediaGallery
standalone
sensitive={status.get('sensitive')}
media={status.get('media_attachments')}
height={300}
onOpenMedia={this.props.onOpenMedia}
autoPlayGif={this.props.autoPlayGif}
/>
);
}
} else if (status.get('spoiler_text').length === 0) {
media = <CardContainer statusId={status.get('id')} />;