Skip to content

Commit

Permalink
17464 fix margins for custom-field markdown description (#17775)
Browse files Browse the repository at this point in the history
* 17464 fix margins for custom-field markdown description

* 17464 fix margins for custom-field markdown description

* 17464 review changes

* 17464 update comments
  • Loading branch information
arthanson authored Oct 16, 2024
1 parent 81108e4 commit 27a3933
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.css

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions netbox/project-static/styles/custom/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,19 @@

}

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

// Remove the bottom margin of the last <p> 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 {
Expand Down

0 comments on commit 27a3933

Please sign in to comment.