]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Don't display toggle reveal button in video modal when full screen
authorfuyu <54523771+mfmfuyu@users.noreply.github.com>
Mon, 3 Feb 2020 11:26:00 +0000 (20:26 +0900)
committerThibaut Girka <thib@sitedethib.com>
Thu, 6 Feb 2020 20:39:26 +0000 (21:39 +0100)
Port 5711899c59147252a01e21371994ca6a60418628 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/video/index.js

index 049baaee734240037dbcdff1e7f79e8fd9a7f5e8..1b5fbce9ffe604d2e9938b92ce1264aa6672003d 100644 (file)
@@ -512,7 +512,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)}>