Issue Bug Resolved

#110771Badge does not wrap to multiple lines

Josua Vogel 09/24/26, 07:50 updated 10/21/26, 11:00

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

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2026-09-24T09:21:23+00:00" > 09/24/26, 09:21 </span>

    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

  2. Oliver Bartsch commented and changed status Needs Feedback Accepted <span data-processor="relativetime" data-value="2026-10-19T12:08:45+00:00" > 10/19/26, 12:08 </span>

    Hey,

    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: nowrap is 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

  3. Gerrit Code Review pushed patch set 1 for main to change 96878 status Accepted Under Review <span data-processor="relativetime" data-value="2026-10-19T18:01:19+00:00" > 10/19/26, 18:01 </span>

  4. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-21T11:00:53+00:00" > 10/21/26, 11:00 </span>

    Applied in changeset commit:5834b080376988fc717e3cdd0a0834eb3803e97a.