Skip to content

Commit

Permalink
chore: add object fit cover
Browse files Browse the repository at this point in the history
  • Loading branch information
Donghyun Hwang committed Dec 5, 2024
1 parent b3e3513 commit 175ec39
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,21 @@ const Background = () => {
top: 0,
left: 0,
width: '100%',
height: '100%',
height: '200vh',
zIndex: -1,
backgroundRepeat: 'repeat',
backgroundSize: 'cover',
backgroundColor: theme.colors.common.white,
transition: THEME_CHANGE_TRANSITION,
}}
>
<Box component="img" src={mode === 'light' ? lightBackgroundImage : darkBackgroundImage} />
<Box
component="img"
src={mode === 'light' ? lightBackgroundImage : darkBackgroundImage}
sx={{
objectFit: 'cover',
}}
/>
</Stack>
);
};
Expand Down

0 comments on commit 175ec39

Please sign in to comment.