From 6b7b3a3fa39dd19725113ae433fa24ecdb260b6c Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 14 Oct 2021 16:37:25 +0100 Subject: [PATCH] Text Panel: fixes unnecessary scroll in markdown html tables (#40315) (#40478) * Text Panel: fixes unnecessary scroll in tables * uses more robust solution that covers every edge case * chore: uses variables instead and sets first child margins to zero * override margin for only h1 and figure elements * remove override styles for h1,table markdown contents (cherry picked from commit 51a48e186912a445888de8b767aa44a49e46a7f6) Co-authored-by: Uchechukwu Obasi --- public/sass/base/_type.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/sass/base/_type.scss b/public/sass/base/_type.scss index 1537734ec8a..d26fbcd1c3f 100644 --- a/public/sass/base/_type.scss +++ b/public/sass/base/_type.scss @@ -213,8 +213,8 @@ a.external-link { margin-bottom: $spacer; } - table { - margin-bottom: $spacer; + *:not(:first-child) { + margin-top: $spacer; } table {