From d710093c6436ecbee44f1f979156391d2880f20a Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Thu, 24 Aug 2023 13:59:08 +0800 Subject: [PATCH] chore(contented-preview): remove table first-child mt and last-child mb (#585) #### What this PR does / why we need it: Similar to `.admonitions`, the tr should influence padding instead of content to allow multiline string rendering. --- packages/contented-preview/src/styles/prose.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/contented-preview/src/styles/prose.css b/packages/contented-preview/src/styles/prose.css index 3a532e1b..8b3138ad 100644 --- a/packages/contented-preview/src/styles/prose.css +++ b/packages/contented-preview/src/styles/prose.css @@ -62,6 +62,14 @@ table-layout: fixed; } +.prose table tr :is(th, td) :first-child { + @apply mt-0; +} + +.prose table tr :is(th, td) :last-child { + @apply mb-0; +} + .prose .mermaid { @apply rounded-[6px] p-6; @apply flex items-center justify-center;