From dab27695b9832dc64a26589d1787f34302a3f600 Mon Sep 17 00:00:00 2001 From: bctiemann Date: Fri, 23 Aug 2024 09:35:01 -0400 Subject: [PATCH] Add styling to rendered-markdown class to clamp height and add scrollbar (#17237) * Add clamp_height to the markdown filter which limits max height to 200 (scrollable) on the container div * Remove clamp_height option, apply scrolling style to all markdown divs inside td's --- netbox/project-static/dist/netbox.css | Bin 543336 -> 543393 bytes .../styles/custom/_markdown.scss | 3 +++ 2 files changed, 3 insertions(+) diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 80d23acfa6878f2ea8c5b86d928f6369cb5131b1..8460154e6b6b03969910d15c80ba811b618799bb 100644 GIT binary patch delta 67 zcmaDcMRDO&#fBEf7N!>F7M2#)7Pc1lEgb7Tl&fF7M2#)7Pc1lEgb7Tw!iS;*vSY0zJLpf diff --git a/netbox/project-static/styles/custom/_markdown.scss b/netbox/project-static/styles/custom/_markdown.scss index cb4527f37..32ef7a09c 100644 --- a/netbox/project-static/styles/custom/_markdown.scss +++ b/netbox/project-static/styles/custom/_markdown.scss @@ -30,6 +30,9 @@ // Remove the bottom margin of

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