From 4fcd3208af21b44ca7f29a9c37a6c8f3c96b51fd Mon Sep 17 00:00:00 2001 From: Mads Nylund <73914541+MadsNyl@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:47:51 +0200 Subject: [PATCH] PNG image bg fix (#1013) removed white bg --- src/components/miscellaneous/AspectRatioImg.tsx | 4 +--- src/pages/Landing/components/Story.tsx | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/miscellaneous/AspectRatioImg.tsx b/src/components/miscellaneous/AspectRatioImg.tsx index a27aa0966..e9df3c599 100644 --- a/src/components/miscellaneous/AspectRatioImg.tsx +++ b/src/components/miscellaneous/AspectRatioImg.tsx @@ -19,9 +19,7 @@ const Img = styled('img', { shouldForwardProp: (prop) => prop !== 'borderRadius' aspectRatio: ratio ? String(ratio) : '21 / 9', objectFit: 'cover', width: '100%', - '&:not([src*=".jpg"])': { - background: theme.palette.common.white, - }, + '&:not([src*=".jpg"])': {}, })); const AspectRatioImg = ({ alt, borderRadius, className, ratio = 21 / 9, src, sx }: AspectRatioImgProps) => { diff --git a/src/pages/Landing/components/Story.tsx b/src/pages/Landing/components/Story.tsx index d19ce261c..270ff473a 100644 --- a/src/pages/Landing/components/Story.tsx +++ b/src/pages/Landing/components/Story.tsx @@ -93,7 +93,6 @@ const useStyles = makeStyles>()((theme, props) => objectPosition: 'center', margin: 'auto', display: 'block', - background: theme.palette.common.white, }, filler: { width: theme.spacing(2),