Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17464 fix margins for custom-field markdown description #17775

Merged
merged 4 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.css

Large diffs are not rendered by default.

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

// Remove the bottom margin of <p> elements inside a table cell
arthanson marked this conversation as resolved.
Show resolved Hide resolved
.rendered-markdown {
p:last-of-type {
margin-bottom: 0;
}
}

td > .rendered-markdown {
max-height: 200px;
overflow-y: scroll;

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

// Markdown preview
Expand Down