Skip to content

Commit

Permalink
fix component sizing
Browse files Browse the repository at this point in the history
Signed-off-by: Max Wolfs <[email protected]>
  • Loading branch information
maxwolfs committed Feb 29, 2024
1 parent 712ce92 commit 93e7914
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 7 additions & 3 deletions src/components/ContentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ const ContentCard: React.FunctionComponent<ContentCardProps> = (props) => {
return (
<div style={style} className={`${styles.contentCard} card`}>
<div className="card__header">
{small ? <h5>{title}</h5> : <h3>{title}</h3>}
{small ? (
<h5 style={{ marginLeft: '-6px' }}>{title}</h5>
) : (
<h3>{title}</h3>
)}
</div>
<div className="card__body">
<p>{body}</p>
Expand All @@ -52,11 +56,11 @@ const ContentCard: React.FunctionComponent<ContentCardProps> = (props) => {
: styles.layerComponentWip
}>
{component.title}
{component.mandatory == 'true' ? (
{/* {component.mandatory == 'true' ? (
<div className={styles.chipMandatory}>mandatory</div>
) : (
<div className={styles.chipOptional}>optional</div>
)}
)} */}
</div>
</Link>
))}
Expand Down
12 changes: 6 additions & 6 deletions src/components/contentcard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
border: solid 2px rgba(70, 72, 213, 0.539);
border-radius: 4px;
background: #43d8b24f;
width: 96px;
height: 96px;
margin: 0 0 16px 16px;
width: 80px;
height: 80px;
margin: 0 0 8px 8px;
padding: 8px;
font-weight: 600;
font-size: 10px;
Expand All @@ -48,9 +48,9 @@
.layerComponentWip {
border: dashed 2px rgba(70, 72, 213, 0.539);
border-radius: 4px;
width: 96px;
height: 96px;
margin: 0 0 16px 16px;
width: 80px;
height: 80px;
margin: 0 0 8px 8px;
padding: 8px;
font-size: 10px;
text-decoration: none;
Expand Down

0 comments on commit 93e7914

Please sign in to comment.