~cytrogen/masto-fe

e9eab013e71c2de28622fed18e645356d10806f4 — Claire 2 years ago 51479f5
[Glitch] Fix audio player width in thread view

Port cf1bc4bb93f93c3056434f694f7ce31ce7f03158 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
M app/javascript/flavours/glitch/features/audio/index.jsx => app/javascript/flavours/glitch/features/audio/index.jsx +1 -1
@@ 476,7 476,7 @@ class Audio extends React.PureComponent {
    }

    return (
      <div className={classNames('audio-player', { editable, inactive: !revealed })} ref={this.setPlayerRef} style={{ backgroundColor: this._getBackgroundColor(), color: this._getForegroundColor(), width: '100%', height: this.props.fullscreen ? '100%' : (this.state.height || this.props.height) }} onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} tabIndex={0} onKeyDown={this.handleKeyDown}>
      <div className={classNames('audio-player', { editable, inactive: !revealed })} ref={this.setPlayerRef} style={{ backgroundColor: this._getBackgroundColor(), color: this._getForegroundColor(), height: this.props.fullscreen ? '100%' : (this.state.height || this.props.height) }} onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} tabIndex={0} onKeyDown={this.handleKeyDown}>

        <Blurhash
          hash={blurhash}

M app/javascript/flavours/glitch/styles/components/media.scss => app/javascript/flavours/glitch/styles/components/media.scss +1 -0
@@ 381,6 381,7 @@
  background: darken($ui-base-color, 8%);
  border-radius: 4px;
  padding-bottom: 44px;
  width: 100%;

  &.editable {
    border-radius: 0;