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 51a48e1869)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-10-14 16:37:25 +01:00
committed by GitHub
co-authored by Uchechukwu Obasi
parent 39fc1bf710
commit 6b7b3a3fa3
+2 -2
View File
@@ -213,8 +213,8 @@ a.external-link {
margin-bottom: $spacer;
}
table {
margin-bottom: $spacer;
*:not(:first-child) {
margin-top: $spacer;
}
table {