From 44c234e3db5c166997f2be9fb156e4724b8b98b4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 6 May 2022 12:11:59 -0500 Subject: [PATCH] Fix external video embed height --- .../features/status/components/detailed-status.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/status/components/detailed-status.tsx b/app/soapbox/features/status/components/detailed-status.tsx index dbd890328..5397c2e4c 100644 --- a/app/soapbox/features/status/components/detailed-status.tsx +++ b/app/soapbox/features/status/components/detailed-status.tsx @@ -129,7 +129,15 @@ class DetailedStatus extends ImmutablePureComponent { + const width = Number(video.meta.getIn(['original', 'width'])); + const height = Number(video.meta.getIn(['original', 'height'])); + return Number(mediaWrapperWidth) / (width / height); + }; + + const height = getHeight(); + media = (