From 27b3d19771957a6297fd1f0e0a30d64cafc6aada Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 3 Feb 2022 09:06:52 +0000 Subject: [PATCH] Properly trim markdown viewer component --- packages/bbui/src/Markdown/MarkdownViewer.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }