Skip to content

Commit

Permalink
PNG image bg fix (#1013)
Browse files Browse the repository at this point in the history
removed white bg
  • Loading branch information
MadsNyl authored Apr 26, 2024
1 parent efdee38 commit 4fcd320
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/components/miscellaneous/AspectRatioImg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
1 change: 0 additions & 1 deletion src/pages/Landing/components/Story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const useStyles = makeStyles<Pick<StoryProps, 'fadeColor'>>()((theme, props) =>
objectPosition: 'center',
margin: 'auto',
display: 'block',
background: theme.palette.common.white,
},
filler: {
width: theme.spacing(2),
Expand Down

0 comments on commit 4fcd320

Please sign in to comment.