]> cat aescling's git repositories - mastodon.git/commitdiff
Don't display toggle reveal button in video modal when full screen (#13026)
authorfuyu <54523771+mfmfuyu@users.noreply.github.com>
Mon, 3 Feb 2020 11:26:00 +0000 (20:26 +0900)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2020 11:26:00 +0000 (12:26 +0100)
app/javascript/mastodon/features/video/index.js

index 0e2a99416064301405af11eefdcd3c803a327942..8ac9c8db711790e34c87925c9e47b41c62ac7dc4 100644 (file)
@@ -517,7 +517,7 @@ class Video extends React.PureComponent {
             </div>
 
             <div className='video-player__buttons right'>
-              {(!onCloseVideo && !editable) && <button type='button' aria-label={intl.formatMessage(messages.hide)} onClick={this.toggleReveal}><Icon id='eye-slash' fixedWidth /></button>}
+              {(!onCloseVideo && !editable && !fullscreen) && <button type='button' aria-label={intl.formatMessage(messages.hide)} onClick={this.toggleReveal}><Icon id='eye-slash' fixedWidth /></button>}
               {(!fullscreen && onOpenVideo) && <button type='button' aria-label={intl.formatMessage(messages.expand)} onClick={this.handleOpenVideo}><Icon id='expand' fixedWidth /></button>}
               {onCloseVideo && <button type='button' aria-label={intl.formatMessage(messages.close)} onClick={this.handleCloseVideo}><Icon id='compress' fixedWidth /></button>}
               <button type='button' aria-label={intl.formatMessage(messages.download)}><a className='video-player__download__icon' href={this.props.src} download><Icon id={'download'} fixedWidth /></a></button>