[PR #17237] [MERGED] Add styling to rendered-markdown class to clamp height and add scrollbar #15031

Closed
opened 2025-12-30 00:19:33 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17237
Author: @bctiemann
Created: 8/21/2024
Status: Merged
Merged: 8/23/2024
Merged by: @jeremystretch

Base: developHead: 16857-clamp-height-on-long-text-custom-field


📝 Commits (2)

  • 42c4bdd Add clamp_height to the markdown filter which limits max height to 200 (scrollable) on the container div
  • 0813db6 Remove clamp_height option, apply scrolling style to all markdown divs inside td's

📊 Changes

2 files changed (+4 additions, -1 deletions)

View changed files

📝 netbox/project-static/dist/netbox.css (+1 -1)
📝 netbox/project-static/styles/custom/_markdown.scss (+3 -0)

📄 Description

Fixes: #16857 - Option to clamp height of container div with scrollbar on markdown filter

Adds styling to the rendered-markdown class to clamp the height to 200px with a vertical scrollbar.

This aims to allow users to populate large amounts of rich text into a Long Text custom field without causing the detail view of an object to become so tall as to be cumbersome.

Screenshot 2024-08-22 at 6 06 52 AM

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/17237 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 8/21/2024 **Status:** ✅ Merged **Merged:** 8/23/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `16857-clamp-height-on-long-text-custom-field` --- ### 📝 Commits (2) - [`42c4bdd`](https://github.com/netbox-community/netbox/commit/42c4bdddefd44523e1005a621a21871f6337bedd) Add clamp_height to the markdown filter which limits max height to 200 (scrollable) on the container div - [`0813db6`](https://github.com/netbox-community/netbox/commit/0813db666b4c903bd7353620cc2f0a80ab03b9ff) Remove clamp_height option, apply scrolling style to all markdown divs inside td's ### 📊 Changes **2 files changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.css` (+1 -1) 📝 `netbox/project-static/styles/custom/_markdown.scss` (+3 -0) </details> ### 📄 Description ### Fixes: #16857 - Option to clamp height of container div with scrollbar on markdown filter Adds styling to the `rendered-markdown` class to clamp the height to 200px with a vertical scrollbar. This aims to allow users to populate large amounts of rich text into a Long Text custom field without causing the detail view of an object to become so tall as to be cumbersome. <img width="1138" alt="Screenshot 2024-08-22 at 6 06 52 AM" src="https://github.com/user-attachments/assets/f28179db-c210-4374-b35a-07c2affc494b"> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:19:33 +01:00
adam closed this issue 2025-12-30 00:19:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15031