Skip to content

Commit

Permalink
Add styling to rendered-markdown class to clamp height and add scroll…
Browse files Browse the repository at this point in the history
…bar (#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
  • Loading branch information
bctiemann authored Aug 23, 2024
1 parent d4dd86e commit dab2769
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions netbox/project-static/styles/custom/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

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

p:last-of-type {
margin-bottom: 0;
}
Expand Down

0 comments on commit dab2769

Please sign in to comment.