From 3fdc1994017f0375abc42f4d4a1a7cc7f879d298 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 31 Mar 2023 15:50:19 +0800 Subject: [PATCH] Padding on empty note boxes --- packages/web/components/patterns/HighlightNotes.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/components/patterns/HighlightNotes.tsx b/packages/web/components/patterns/HighlightNotes.tsx index 69376f0d9..eb2c0a2fb 100644 --- a/packages/web/components/patterns/HighlightNotes.tsx +++ b/packages/web/components/patterns/HighlightNotes.tsx @@ -298,13 +298,13 @@ export function MarkdownNote(props: MarkdownNote): JSX.Element { paddingLeft: props.fillBackground && props.text ? '10px' - : props.fillBackground + : !props.text ? '5px' : '0px', paddingRight: props.fillBackground && props.text ? '10px' - : props.fillBackground + : !props.text ? '5px' : '0px', color: props.text ? '$thHighContrast' : '#898989',