Skip to content

Commit

Permalink
modify content margin,height,width
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon committed Oct 22, 2024
1 parent c5afdc1 commit 513611e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/molecules/card/AnyWayCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ const useStyles = makeStyles((theme) => ({
color: (theme.palette.primary as ColorScheme).fontColor,
},
content: {
height: '100%',
height: 'calc(100% - 20px)',
width: 'calc(100% - 40px)',
marginTop: '20px',
marginLeft: 'auto',
marginRight: 'auto',
boxSizing: 'border-box',
padding: 0,
backgroundColor: (theme.palette.primary as ColorScheme).containerColor,
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/card/card.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function getSizes(variant: CardVariant, factor: number): CardSizes {
const width = cardWidth * factor;
const headerHeight = variant.header === HeaderVariant.None ? 0 : cardHeaderHeight * factor;
const footerHeight = variant.footer === FooterVariant.None ? 0 : cardFooterHeight * factor;
const contentHeight = height - headerHeight - 2 * footerHeight;
const contentHeight = height - headerHeight - footerHeight;

return {
height,
Expand Down

0 comments on commit 513611e

Please sign in to comment.