From 56d87f939966dcb0ab12e28d6cf37f42f9c474ab Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Tue, 19 Jan 2021 18:03:47 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/render-social-image/[pageId].ts | 8 ++++---- styles/notion.css | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/render-social-image/[pageId].ts b/api/render-social-image/[pageId].ts index f3c6c60..f0f3808 100644 --- a/api/render-social-image/[pageId].ts +++ b/api/render-social-image/[pageId].ts @@ -74,17 +74,17 @@ export default async (req: NextApiRequest, res: NextApiResponse) => { const image = await createSocialImage({ imageUrl: mapNotionImageUrl( - block.format?.page_cover ?? defaultPageCover, + block.format?.page_cover || defaultPageCover, block ), logo: mapNotionImageUrl( - getBlockIcon(block, recordMap) ?? defaultPageIcon, + getBlockIcon(block, recordMap) || defaultPageIcon, block ), title: isRootPage ? socialImageTitle - : getBlockTitle(block, recordMap) ?? socialImageTitle, - subtitle: getPageDescription(block, recordMap) ?? socialImageSubtitle + : getBlockTitle(block, recordMap) || socialImageTitle, + subtitle: getPageDescription(block, recordMap) || socialImageSubtitle }) res.setHeader( diff --git a/styles/notion.css b/styles/notion.css index 226fd9d..489b8d4 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -11,7 +11,7 @@ margin: 0 12px; width: 720px; padding-bottom: calc(max(5vh, 64px)) !important; - line-height: 1.75; + line-height: 1.65; } .index-page {