]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix volume slider in chromium 🤷
authorThibG <thib@sitedethib.com>
Thu, 24 Oct 2019 20:49:12 +0000 (22:49 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sun, 27 Oct 2019 13:42:44 +0000 (14:42 +0100)
Port bcf694dce7536d29ede3c0865b00cb84f348b5e1 to glitch-soc

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

index cf0e85b733063dcdc9ea71943518580b6141c70c..26621cebcf6fc95474a5bb23123709d856210bcf 100644 (file)
@@ -202,6 +202,7 @@ class Audio extends React.PureComponent {
               <button type='button' aria-label={intl.formatMessage(muted ? messages.unmute : messages.mute)} onClick={this.toggleMute}><Icon id={muted ? 'volume-off' : 'volume-up'} fixedWidth /></button>
 
               <div className='video-player__volume' onMouseDown={this.handleVolumeMouseDown} ref={this.setVolumeRef}>
+                &nbsp;
                 <div className='video-player__volume__current' style={{ width: `${volumeWidth}px` }} />
 
                 <span
index 2659e0e91cd04ee16e381cf863c566c2f18c8425..07602838d1635d35f9b52b5f67216463d7fa7396 100644 (file)
@@ -490,6 +490,7 @@ class Video extends React.PureComponent {
               <button type='button' aria-label={intl.formatMessage(paused ? messages.play : messages.pause)} onClick={this.togglePlay}><Icon id={paused ? 'play' : 'pause'} fixedWidth /></button>
               <button type='button' aria-label={intl.formatMessage(muted ? messages.unmute : messages.mute)} onClick={this.toggleMute}><Icon id={muted ? 'volume-off' : 'volume-up'} fixedWidth /></button>
               <div className='video-player__volume' onMouseDown={this.handleVolumeMouseDown} ref={this.setVolumeRef}>
+                &nbsp;
                 <div className='video-player__volume__current' style={{ width: `${volumeWidth}px` }} />
                 <span
                   className={classNames('video-player__volume__handle')}