Skip to content

Commit

Permalink
Merge pull request #1142 from data-for-change/bug-1136-axis-partial
Browse files Browse the repository at this point in the history
revert card size, decrease content size
  • Loading branch information
atalyaalon authored Oct 22, 2024
2 parents e1ec0f0 + c5afdc1 commit 926853b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 - footerHeight;
const contentHeight = height - headerHeight - 2 * footerHeight;

return {
height,
Expand Down
4 changes: 2 additions & 2 deletions src/style/_sizes.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const defaultBorderRadius = 4;
export const sidBarWidth = 300;
// card
export const cardHeight = 430;
export const cardWidth = 430;
export const cardHeight = 500;
export const cardWidth = 500;
// card content and actions (footer)
export const cardHeaderHeight = 70;
export const cardFooterHeight = 50;
Expand Down

0 comments on commit 926853b

Please sign in to comment.