summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-18 22:43:22 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-18 22:43:22 +0200
commit30d3489ca15b3ec16b93c312b0f517cd1bead1cd (patch)
tree7e85067757a38f5d756c83ab1d7ef5536703e9dd /src/components/molecules/layout
parent584bd42f871d2e1618ca414749f09c38f0143a44 (diff)
chore: fix minor styles/typescript issues introduced during refactoring
Diffstat (limited to 'src/components/molecules/layout')
-rw-r--r--src/components/molecules/layout/card.module.scss3
-rw-r--r--src/components/molecules/layout/card.tsx6
2 files changed, 7 insertions, 2 deletions
diff --git a/src/components/molecules/layout/card.module.scss b/src/components/molecules/layout/card.module.scss
index 3af8f24..6065642 100644
--- a/src/components/molecules/layout/card.module.scss
+++ b/src/components/molecules/layout/card.module.scss
@@ -33,7 +33,8 @@
.title {
flex: 1;
- margin: var(--spacing-sm) 0;
+ margin-top: var(--spacing-sm);
+ margin-bottom: var(--spacing-sm);
}
h2.title {
diff --git a/src/components/molecules/layout/card.tsx b/src/components/molecules/layout/card.tsx
index e416bd5..003060f 100644
--- a/src/components/molecules/layout/card.tsx
+++ b/src/components/molecules/layout/card.tsx
@@ -87,7 +87,11 @@ const Card: FC<CardProps> = ({
className={styles.cover}
/>
)}
- <Heading level={titleLevel} className={styles.title}>
+ <Heading
+ alignment="center"
+ level={titleLevel}
+ className={styles.title}
+ >
{title}
</Heading>
</header>