diff --git a/app/soapbox/features/status/components/detailed-status.tsx b/app/soapbox/features/status/components/detailed-status.tsx index f0b34ea4a..1387fd2cf 100644 --- a/app/soapbox/features/status/components/detailed-status.tsx +++ b/app/soapbox/features/status/components/detailed-status.tsx @@ -34,22 +34,16 @@ interface IDetailedStatus extends IntlProps { interface IDetailedStatusState { height: number | null, - mediaWrapperWidth: number, } class DetailedStatus extends ImmutablePureComponent { state = { height: null, - mediaWrapperWidth: NaN, }; node: HTMLDivElement | null = null; - handleOpenVideo = (media: ImmutableList, startTime: number) => { - this.props.onOpenVideo(media, startTime); - } - handleExpandedToggle = () => { this.props.onToggleHidden(this.props.status); } @@ -71,10 +65,6 @@ class DetailedStatus extends ImmutablePureComponent = c => { this.node = c; this._measureHeight(); - - if (c) { - this.setState({ mediaWrapperWidth: c.offsetWidth }); - } } componentDidUpdate(prevProps: IDetailedStatus, prevState: IDetailedStatusState) {