-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Text length can extend beyond the boundary of its container panel on a model's detail page #10596
Comments
Bootstrap provides utility classes to control how overflow is handled, however using them would require application to all potentially relevant areas. It might be prudent to just set |
Unfortunately the solution under PR #10621 (applying |
@jeremystretch can you provide a page where this shows the issue (where there is a dropdown menu within a card) and I will take a look. |
I've been recreating it by setting the description for a site to its max length using a string of As. The unbroken string pushes past the right hand boundary of the card (assuming a narrow enough browser window). |
@jeremystretch - I think he was asking for an example of the broken dropdown because of the initial fix. |
Sorry, no coffee yet. IIRC I noticed it on the "connect" dropdown when viewing an unconnected interface. |
This (https://css-tricks.com/popping-hidden-overflow/) looks like it explains the issue, uses some javascript. Tried overflow-wrap: break-word; and overflow-x: auto to no avail... Not sure of a good solution for this yet. |
Closing this for inactivity. It's something we're sure to revisit under #12128. |
NetBox version
v3.3.5
Python version
3.8
Steps to Reproduce
Expected Behavior
The horizontally-long text should either wrap or a scrollbar should be shown.
Observed Behavior
The text extends beyond the panel boundaries.
demo.netbox.dev:
The Config Context works well with a scrollbar:
The JSON field is the most obvious offender as it's quite common for the text to be long, but other, more exaggerated, examples are given in the illustration.
My suggestion would be to implement an automatic scrollbar if the content overflows for just the single field value, so that users don't have to scroll the entire panel and they don't have to scroll to access buttons that are justified to the right.
The text was updated successfully, but these errors were encountered: