diff --git a/packages/bbui/src/Markdown/MarkdownViewer.svelte b/packages/bbui/src/Markdown/MarkdownViewer.svelte index b601bbf027..26a716690c 100644 --- a/packages/bbui/src/Markdown/MarkdownViewer.svelte +++ b/packages/bbui/src/Markdown/MarkdownViewer.svelte @@ -57,7 +57,10 @@ .markdown-viewer :global(.editor-preview-full) { 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) { margin-bottom: 0; }