Closed mouflondarko closed 3 months ago
While you are at it, could you make sure that the other texts like the default value in the screenshot are also breaking?
@linawolf could we use this
Copying such words should not copy hidden chars then since it's only invisible html markup....?
Sounds great to me :)
@garvinhicking we could make a twig function for that I guess
@linawolf sure, I've pushed a commit that resolves the issue (<wbr>
tags would also work for those values):
Thanks for this change, merged, I will collect several changes before I make a new release however.
Could you open an Issue about the wbr tags?
Fixes #698 This rather simple fix makes confval titles break preferably by white space, if there is no white space present or word is too long it will break anywhere.
BEFORE:
AFTER:
Note: Non-alphanumeric signs like dots or dashes are not taken into account when wrapping - in order to break titles by them, it would be necessary to parse the title beforehand to insert the Line Break Opportunity
<wbr>
tag when needed (e.g. before a dot or a dash), like so:Here is the preview for titles using the
<wbr>
tags (inserted manually):