Skip to content

Commit

Permalink
fix: max width removed from card (#250)
Browse files Browse the repository at this point in the history
fix(card): max width incorrectly applied to card

fixes #249
  • Loading branch information
bdougie committed Aug 22, 2022
1 parent ee70c0b commit 523969a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/atoms/Card/card.tsx
Expand Up @@ -8,7 +8,7 @@ interface CardProps {

const Card: React.FC<CardProps> = ({ className, children, heading }) => {
return (
<article className={`${className ? className : ""} block ${heading ? "" : "p-6"} max-w-2xl bg-white rounded-lg drop-shadow-md`}>
<article className={`${className ? className : ""} block ${heading ? "" : "p-6"} bg-white rounded-lg drop-shadow-md`}>
{
heading ?
<>
Expand All @@ -19,13 +19,13 @@ const Card: React.FC<CardProps> = ({ className, children, heading }) => {
{children}
</div>
</>

:

children
}
</article>
);
};

export default Card;
export default Card;

0 comments on commit 523969a

Please sign in to comment.