Skip to content

Commit

Permalink
Change design of audio players in web UI (mastodon#14095)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and Mage committed Jan 14, 2022
1 parent b8f5784 commit 49054a0
Show file tree
Hide file tree
Showing 4 changed files with 551 additions and 97 deletions.
3 changes: 3 additions & 0 deletions app/javascript/mastodon/components/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,12 @@ class Status extends ImmutablePureComponent {
<Component
src={attachment.get('url')}
alt={attachment.get('description')}
poster={status.getIn(['account', 'avatar_static'])}
duration={attachment.getIn(['meta', 'original', 'duration'], 0)}
peaks={[0]}
width={this.props.cachedMediaWidth}
height={70}
cacheWidth={this.props.cacheMediaWidth}
/>
)}
</Bundle>
Expand Down
Loading

0 comments on commit 49054a0

Please sign in to comment.