Skip to content

Commit

Permalink
Merge pull request #16 from raczmirko/feature/customcard-layout
Browse files Browse the repository at this point in the history
feat: changed CustomCard layout
  • Loading branch information
raczmirko authored Jul 27, 2024
2 parents 1a242c6 + 2db17d2 commit 464dc52
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/components/cards/CustomCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ const CustomCard = ({ icon: Icon, title, body, bgColor, textColor }) => {
},
}}
>
{Icon && (
<Box sx={{ marginRight: 4 }}>
<Icon sx={{ fontSize: cardIconSize }} />
<Box sx={{ width: '100%' }}>
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<Typography
component="div"
sx={{
fontSize: {
xs: cardTitleSize.xs, // mobile
sm: cardTitleSize.sm, // small screens
md: cardTitleSize.md, // medium and up
},
lineHeight: "1.2",
}}
>
{title}
</Typography>
{Icon && (
<Icon sx={{ fontSize: cardIconSize }} />
)}
</Box>
)}
<Box>
<Typography
component="div"
sx={{
fontSize: {
xs: cardTitleSize.xs, // mobile
sm: cardTitleSize.sm, // small screens
md: cardTitleSize.md, // medium and up
},
lineHeight: "1.2",
}}
>
{title}
</Typography>
<Typography
variant="h5"
component="div"
Expand Down

0 comments on commit 464dc52

Please sign in to comment.