Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit fe2a26d

Browse files
committed
fix(plugins/plugin-client-common): DescriptionList ui poorly formats cells with long content
Our maxWidth heuristic ignores the length of the values, using only the length of the keys
1 parent 1f33956 commit fe2a26d

File tree

1 file changed

+1
-1
lines changed
  • plugins/plugin-client-common/src/components/spi/DescriptionList/impl

1 file changed

+1
-1
lines changed

plugins/plugin-client-common/src/components/spi/DescriptionList/impl/PatternFly.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function columnModifier(maxWidth: number) {
4444

4545
export default function PatternFlyDescriptionList(props: Omit<Props, 'as'>) {
4646
const maxWidth = props.groups.reduce(
47-
(max, group) => Math.max(max, group.term.length /*, group.description.toString().length */),
47+
(max, group) => Math.max(max, group.term.length, group.description.toString().length),
4848
0
4949
)
5050

0 commit comments

Comments
 (0)