Skip to content

Commit

Permalink
Fix Card alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok committed Sep 28, 2023
1 parent 6afc7f2 commit 9f42dc9
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions src/components/CardPrimary/CardPrimary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,6 @@ const Content = styled.div<{ $size?: "sm" | "md" }>`
flex: 1;
`;

const ContentContainer = styled.div<{ $size?: "sm" | "md" }>`
display: flex;
flex-direction: column;
align-self: center;
justify-content: space-between;
width: 100%;
height: 100%;
gap: ${({ $size = "md", theme }) => theme.click.card.primary.space[$size].gap};
`;

export const CardPrimary = ({
title,
icon,
Expand Down Expand Up @@ -152,22 +142,20 @@ export const CardPrimary = ({
<Title type="h3">{title}</Title>
</Header>

<ContentContainer>
<Content $size={size}>
<Text color="muted">{description}</Text>
</Content>
<Content $size={size}>
<Text color="muted">{description}</Text>
</Content>

{size == "sm" && <Spacer size="sm" />}
{size == "sm" && <Spacer size="sm" />}

{infoText && (
<Component
onClick={handleClick}
disabled={disabled}
>
{infoText}
</Component>
)}
</ContentContainer>
{infoText && (
<Component
onClick={handleClick}
disabled={disabled}
>
{infoText}
</Component>
)}
</Wrapper>
);
};

0 comments on commit 9f42dc9

Please sign in to comment.