about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/status.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-06-21 02:27:19 +0200
committerThibG <thib@sitedethib.com>2020-07-02 17:31:09 +0200
commitad978ab1d49ea043a65c07f3433fe141d9fab6b4 (patch)
treee310aaf1f16a4f523aeea7f183f527bc4266b786 /app/javascript/flavours/glitch/components/status.js
parente62d574ead8a18050225532619f36423cf017371 (diff)
[Glitch] Change design of audio players in web UI
Port 75a2b8f8153ce3a6496fcaf6eedf9f2bb7c729e6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/components/status.js')
-rw-r--r--app/javascript/flavours/glitch/components/status.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js
index e036c0da7..4ff9359ef 100644
--- a/app/javascript/flavours/glitch/components/status.js
+++ b/app/javascript/flavours/glitch/components/status.js
@@ -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>