From aa72a7d80561e3b7731337bfcd0e8fc922169144 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 <abias1122@gmail.com> Date: Thu, 22 Jun 2023 16:52:47 +0000 Subject: [PATCH] Fix avatar alignment issue (#1475) --- src/shared/components/common/pictrs-image.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/components/common/pictrs-image.tsx b/src/shared/components/common/pictrs-image.tsx index 7443749..31fb122 100644 --- a/src/shared/components/common/pictrs-image.tsx +++ b/src/shared/components/common/pictrs-image.tsx @@ -22,7 +22,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> { render() { return ( - <picture className="pictrs-image d-inline-block overflow-hidden"> + <picture> <source srcSet={this.src("webp")} type="image/webp" /> <source srcSet={this.props.src} /> <source srcSet={this.src("jpg")} type="image/jpeg" /> @@ -31,7 +31,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> { alt={this.alt()} title={this.alt()} loading="lazy" - className={classNames({ + className={classNames("overflow-hidden pictrs-image", { "img-fluid": !this.props.icon && !this.props.iconOverlay, banner: this.props.banner, "thumbnail rounded": -- 2.44.1