From 27a39339df8442c18b8b282dae18c9fbd3b1a761 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Wed, 16 Oct 2024 13:53:21 -0700 Subject: [PATCH] 17464 fix margins for custom-field markdown description (#17775) * 17464 fix margins for custom-field markdown description * 17464 fix margins for custom-field markdown description * 17464 review changes * 17464 update comments --- netbox/project-static/dist/netbox.css | Bin 554655 -> 554652 bytes .../styles/custom/_markdown.scss | 13 ++++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index fbad302ff47fecfc13969279dcd861519cf68e64..081c9aa6326820ac4c82d6f60f7b869b85a59d4e 100644 GIT binary patch delta 41 xcmbRLR&mZ-#fBEf7N!>F7M2#)7Pc1lEgYYVrt24T7)}3N#9_HTv6#b-830xQ4>bS) delta 45 zcmbR9R&oAY#fBEf7N!>F7M2#)7Pc1lEgYYVrmGfnSTdKS*iHXj#9_2Ou9(A)832%a B5J3O{ diff --git a/netbox/project-static/styles/custom/_markdown.scss b/netbox/project-static/styles/custom/_markdown.scss index 32ef7a09c..75ada3bc6 100644 --- a/netbox/project-static/styles/custom/_markdown.scss +++ b/netbox/project-static/styles/custom/_markdown.scss @@ -28,16 +28,19 @@ } -// Remove the bottom margin of

elements inside a table cell -td > .rendered-markdown { - max-height: 200px; - overflow-y: scroll; - +// Remove the bottom margin of the last

elements in markdown +.rendered-markdown { p:last-of-type { margin-bottom: 0; } } +// fix layout of rendered markdown inside a table cell +td > .rendered-markdown { + max-height: 200px; + overflow-y: scroll; +} + // Markdown preview .markdown-widget { .preview {