Skip to content

Commit

Permalink
chore(contented-preview): remove table first-child mt and last-child …
Browse files Browse the repository at this point in the history
…mb (#585)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:

Similar to `.admonitions`, the tr should influence padding instead of
content to allow multiline string rendering.
  • Loading branch information
fuxingloh authored Aug 24, 2023
1 parent 1503f45 commit d710093
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/contented-preview/src/styles/prose.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d710093

Please sign in to comment.