From 30d3489ca15b3ec16b93c312b0f517cd1bead1cd Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 18 May 2022 22:43:22 +0200 Subject: chore: fix minor styles/typescript issues introduced during refactoring --- src/components/molecules/layout/card.module.scss | 3 ++- src/components/molecules/layout/card.tsx | 6 +++++- src/components/organisms/layout/overview.tsx | 1 - src/components/templates/page/page-layout.test.tsx | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') 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 = ({ className={styles.cover} /> )} - + {title} diff --git a/src/components/organisms/layout/overview.tsx b/src/components/organisms/layout/overview.tsx index 55ad0b5..d49dee1 100644 --- a/src/components/organisms/layout/overview.tsx +++ b/src/components/organisms/layout/overview.tsx @@ -43,7 +43,6 @@ const Overview: FC = ({ className = '', cover, meta }) => {
{cover && ( { breadcrumb={breadcrumb} breadcrumbSchema={breadcrumbSchema} title={title} + allowComments={true} comments={comments} > {children} -- cgit v1.2.3