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

[SF] Table - When the column header labels are very long, show them as truncated text instead of increasing the table header height to accommodate them

Open Vir-Mittal opened this issue 3 years ago • 0 comments

Feature Request Description

Original issue for reference - https://github.com/SAP/ui5-webcomponents/issues/5268

Sandbox - https://codesandbox.io/s/table-with-long-column-header-labels-vdrofi?file=/src/App.js

For the Table component, when very long labels are used for the column headers and the screen width is large, the column headers are displayed as expected, taking up as much space as possible - Table long column labels with large width

However, when the screen width is small, the table header height increases in order to accommodate the long labels - Table long column labels with small width

Instead of increasing the column header height, would it be possible to show the long labels as truncated text instead, something like this - Table columns labels with truncated text

This would be similar to how other components such as the Card Header show truncated text when the text is too long

Proposed Solution

Instead of increasing the column header height, would it be possible to show the long labels as truncated text instead, something like this - Table columns labels with truncated text

Priority

  • [ ] Low
  • [x] Medium
  • [ ] High
  • [ ] Very High

A clear and concise description of the impact/urgency of the required feature.

Stakeholder Info (if applicable)

  • Organization: {SuccessFactors}

Vir-Mittal avatar Aug 15 '22 17:08 Vir-Mittal