Skip to content

Commit

Permalink
Merge pull request #1143 from data-for-change/bug-1136-axis-partial
Browse files Browse the repository at this point in the history
modify content margin,height,width
  • Loading branch information
atalyaalon authored Oct 22, 2024
2 parents 926853b + 513611e commit 05b8f6b
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 05b8f6b

Please sign in to comment.