Closed bjarnef closed 3 years ago
@bjarnef Well spotted! 👀
I've had a look at this to see what I can do. Turns out that it's Umbraco explicitly setting the CSS for the item to have white-space: nowrap;
.
I could fix this for Contentment, but really it's Umbraco setting the text to overflow.
If you need an immediate workaround, here's some custom CSS to add in...
.contentment .umb-action-link {
white-space: normal;
}
Yeah, it should probably be fixed in Umbraco.
Not sure if there's a specific reason white-space: nowrap;
is set?
Alternatively it could use text-overflow
.
.umb-actions .menu-label {
display: inline-block;
vertical-align: middle;
padding-left: 15px;
text-overflow: ellipsis;
overflow: hidden;
}
I'm going to close this one off, as it's an Umbraco CSS issue. In the meantime, a custom CSS workaround can be used.
What is the current behaviour?
When using a custom data source and a longer text it seems to overflow:
What is the expected behaviour?
It would be great to wrap the text on next line to keep it inside the parent
<button>
element.Please tell us about your set-up:
Anything else?