diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-06-21 02:27:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-21 02:27:19 +0200 |
commit | 75a2b8f8153ce3a6496fcaf6eedf9f2bb7c729e6 (patch) | |
tree | ae31e0931312141575c2ce9de7cdfd11e1b5f1dd /app/javascript/mastodon/components | |
parent | f111b71d1c302435d8bdc577784b4a12d8e305ee (diff) |
Change design of audio players in web UI (#14095)
Diffstat (limited to 'app/javascript/mastodon/components')
-rw-r--r-- | app/javascript/mastodon/components/status.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index f99ccd39a..4ed8cbdd9 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -345,9 +345,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> |