Skip to content

Commit dab2769

Browse files
authored
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
1 parent d4dd86e commit dab2769

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

netbox/project-static/dist/netbox.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

netbox/project-static/styles/custom/_markdown.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
// Remove the bottom margin of <p> elements inside a table cell
3232
td > .rendered-markdown {
33+
max-height: 200px;
34+
overflow-y: scroll;
35+
3336
p:last-of-type {
3437
margin-bottom: 0;
3538
}

0 commit comments

Comments
 (0)