[Glitch] Change design of audio players in web UI

Port 75a2b8f815 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
Eugen Rochko
2020-06-21 02:27:19 +02:00
committed by ThibG
parent e62d574ead
commit ad978ab1d4
4 changed files with 552 additions and 101 deletions

View File

@ -591,9 +591,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>