diff options
author | ThibG <thib@sitedethib.com> | 2019-10-24 22:49:12 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-10-24 22:49:12 +0200 |
commit | bcf694dce7536d29ede3c0865b00cb84f348b5e1 (patch) | |
tree | e6802ee112d676a437b45056eae95de5f8a37bc0 /app | |
parent | d3145ced1fc62a89454d775d79cb214904a0683a (diff) |
Fix volume slider in chromium 🤷 (#12158)
Fixes #12156
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/features/audio/index.js | 1 | ||||
-rw-r--r-- | app/javascript/mastodon/features/video/index.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/audio/index.js b/app/javascript/mastodon/features/audio/index.js index 95e5675f3..d3b309f0f 100644 --- a/app/javascript/mastodon/features/audio/index.js +++ b/app/javascript/mastodon/features/audio/index.js @@ -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}> + <div className='video-player__volume__current' style={{ width: `${volumeWidth}px` }} /> <span diff --git a/app/javascript/mastodon/features/video/index.js b/app/javascript/mastodon/features/video/index.js index 5fe4e956f..07051ddf3 100644 --- a/app/javascript/mastodon/features/video/index.js +++ b/app/javascript/mastodon/features/video/index.js @@ -470,6 +470,7 @@ class Video 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}> + <div className='video-player__volume__current' style={{ width: `${volumeWidth}px` }} /> <span className={classNames('video-player__volume__handle')} |