Commit 2172d832 authored by ikuradon's avatar ikuradon 🐈

Add nsfw marker.

parent 933b4881
......@@ -245,6 +245,7 @@ class MediaGallery extends React.PureComponent {
const width = this.state.width || defaultWidth;
let children;
let nsfw_eye;
const style = {};
......@@ -287,8 +288,13 @@ class MediaGallery extends React.PureComponent {
}
}
if (sensitive) {
nsfw_eye = (<div style={{position: 'absolute', bottom: 0, left: 0, zIndex: 9999}}>👀</div>);
}
return (
<div className='media-gallery' style={style} ref={this.handleRef}>
{nsfw_eye}
<div className={classNames('spoiler-button', { 'spoiler-button--visible': visible })}>
<IconButton title={intl.formatMessage(messages.toggle_visible)} icon={visible ? 'eye' : 'eye-slash'} overlay onClick={this.handleOpen} />
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment