ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[List]: Text is truncated in ListItemGroup

Open wilson-xu-sap opened this issue 6 months ago • 6 comments

Describe the bug

Image

Title and text is still truncated. It doesn't seem that there exist a way setting the wrappingmode. https://github.com/SAP/ui5-webcomponents/issues/9745

Isolated Example

https://sap.github.io/ui5-webcomponents-react/v2/?path=/story/data-display-list--list-item-group-story

Reproduction steps

1.try adding content in group header and content

Expected Behaviour

not truncated

Screenshots or Videos

No response

UI5 Web Components for React Version

2.10.1

UI5 Web Components Version

2.10.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output


Organization

SF

Declaration

  • [x] I’m not disclosing any internal or sensitive information.

wilson-xu-sap avatar Jun 04 '25 07:06 wilson-xu-sap

Hi @wilson-xu-sap

please clarify what the intend of the issue is. Am I correct in my assumption that you want to request a feature that enables the option of wrapping the text inside the ListItemGroup header text?

Lukas742 avatar Jun 04 '25 07:06 Lukas742

Hi @Lukas742 Not only the title in ListItemGroup, but also the text in ListItemCustom.

wilson-xu-sap avatar Jun 04 '25 07:06 wilson-xu-sap

BTW, if we use header in ListItemGroup instead of headertext, it will be overlapped with content.

Image

wilson-xu-sap avatar Jun 04 '25 07:06 wilson-xu-sap

@wilson-xu-sap thanks for the clarification!

I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

Lukas742 avatar Jun 04 '25 09:06 Lukas742

Hi @SAP/ui5-webcomponents-topic-p ,

Recently we added text wrapping support to the standard list-items (ListItemStandard), but now we have a request to support the same for the ListItemGroup, see the provided example above.

kineticjs avatar Jun 04 '25 11:06 kineticjs

Internal Reference: BGSOFUIPIRIN-6871

plamenivanov91 avatar Jun 27 '25 11:06 plamenivanov91

Hi @wilson-xu-sap,

Thank you for the feature request.

ui5-li-custom is intentionally designed as a generic container to provide maximum flexibility. Adding built-in wrapping would limit this flexibility and go against its core purpose.

For handling long text in custom list items, we recommend using ui5-expandable-text at the application level:

<ui5-li-custom>
  <div class="custom-item">
    <ui5-expandable-text max-characters="120" text="Your long text..."/>
  </div>
</ui5-li-custom>

This approach gives you full control over text expansion behavior while keeping ui5-li-custom generic. You can see this pattern in our List Wrapping Behavior sample (currently in PR https://github.com/SAP/ui5-webcomponents/pull/12011)

The ListItemGroup part of this requests is still in progress.

dobrinyonkov avatar Jul 28 '25 07:07 dobrinyonkov

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Aug 04 '25 11:08 github-actions[bot]

:tada: This issue has been resolved in version v2.13.0 :tada:

The release is available on v2.13.0

Your semantic-release bot :package::rocket:

ui5-webcomponents-bot avatar Aug 04 '25 13:08 ui5-webcomponents-bot