#110771Badge does not wrap to multiple lines
Description
The badge component does not wrap when longer texts are entered and there isn’t enough space in the frame.
Reviews 2
Files 1
History 47
-
Riccardo De Contardi commented 09/24/26, 09:21
-
Oliver Bartsch changed status
NewNeeds Feedback 10/19/26, 11:50 -
Oliver Bartsch commented and changed status
Needs FeedbackAccepted 10/19/26, 12:08Hey,
sorry, missed the screenshot, which already answers my questions.
The message comes from core, not from the container extension. Since v14.2 (#109366), FormEngine keeps a select field with no selectable items as read-only when debug output is enabled, and adds the hint “No selectable items available. Check TCA, related records and TSconfig.” The hint is rendered by
NoSelectableItemsAvailable(EXT:backend/Classes/Form/FieldInformation/NoSelectableItemsAvailable.php) as<span class="badge badge-info">.So the global badge styling stays as it is (
white-space: nowrapis intended), but this message should either be adjusted or not be a badge at all. I am setting the issue back to “New”.Cheers, Oli
-
Gerrit Code Review pushed patch set 1 for main to change 96878 status
AcceptedUnder Review 10/19/26, 18:01 -
Gerrit Code Review pushed patch set 1 for 14.3 to change 96959 10/21/26, 06:48
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 96959 10/21/26, 10:40
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % 10/21/26, 11:00Applied in changeset commit:5834b080376988fc717e3cdd0a0834eb3803e97a.
Okay, but I think that’s a misuse of the component… a badge should not contain entire phrases, but single numbers / short words or at maximum a couple of words
https://component.gallery/components/badge/
Atlassian limits the width of its “Lozenge” component to 200px and truncates the text