diff options
Diffstat (limited to 'src/components/molecules')
| -rw-r--r-- | src/components/molecules/layout/card.module.scss | 3 | ||||
| -rw-r--r-- | src/components/molecules/layout/card.tsx | 6 |
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> |
