Skip to content

Commit

Permalink
Fix audio player width in thread view (mastodon#24713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and Michael Mitchell committed May 3, 2023
1 parent 31a87f3 commit 423284e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/audio/index.jsx
Expand Up @@ -470,7 +470,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}
Expand Down
1 change: 1 addition & 0 deletions app/javascript/styles/mastodon/components.scss
Expand Up @@ -6522,6 +6522,7 @@ a.status-card.compact:hover {
background: darken($ui-base-color, 8%);
border-radius: 4px;
padding-bottom: 44px;
width: 100%;

&.editable {
border-radius: 0;
Expand Down

0 comments on commit 423284e

Please sign in to comment.