1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Properly trim markdown viewer component

This commit is contained in:
Andrew Kingston 2022-02-03 09:06:52 +00:00
parent 9310ef08f5
commit e8f8d6ead9

View file

@ -57,7 +57,10 @@
.markdown-viewer :global(.editor-preview-full) { .markdown-viewer :global(.editor-preview-full) {
position: relative; position: relative;
} }
/* Remove margin on the final component to fully trim the preview */ /* Remove margin on the first and last components to fully trim the preview */
.markdown-viewer :global(.editor-preview-full > :first-child) {
margin-top: 0;
}
.markdown-viewer :global(.editor-preview-full > :last-child) { .markdown-viewer :global(.editor-preview-full > :last-child) {
margin-bottom: 0; margin-bottom: 0;
} }