From 7f993c6ce7b350caf3aec657ee9b2c77790dc79b Mon Sep 17 00:00:00 2001 From: Security-Chief-Odo <87156706+Security-Chief-Odo@users.noreply.github.com> Date: Fri, 25 Aug 2023 23:34:49 -0500 Subject: [PATCH] Improved webm handling for pictrs and UI. Fixes #2072 (#2074) Co-authored-by: Beehaw Dev --- src/shared/components/common/pictrs-image.tsx | 58 ++++++++++++++----- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/src/shared/components/common/pictrs-image.tsx b/src/shared/components/common/pictrs-image.tsx index f1285129..1d2b72da 100644 --- a/src/shared/components/common/pictrs-image.tsx +++ b/src/shared/components/common/pictrs-image.tsx @@ -21,16 +21,13 @@ export class PictrsImage extends Component { } render() { - return ( - - - - - {this.alt()} { this.props.iconOverlay, "avatar-pushup": this.props.pushup, })} - /> - - ); + > + + {this.alt()} + + ); + } else { + return ( + + + + + {this.alt()} + + ); + } } src(format: string): string { @@ -62,7 +93,6 @@ export class PictrsImage extends Component { const host = split[0]; const path = split[1]; - const params = { format }; if (this.props.thumbnail) {