File tree 2 files changed +12
-5
lines changed
client/src/app/pages/archetypes
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,10 @@ const Archetypes: React.FC = () => {
365
365
< Td { ...getTdProps ( { columnKey : "name" } ) } >
366
366
{ archetype . name }
367
367
</ Td >
368
- < Td { ...getTdProps ( { columnKey : "description" } ) } >
368
+ < Td
369
+ { ...getTdProps ( { columnKey : "description" } ) }
370
+ modifier = "truncate"
371
+ >
369
372
< ArchetypeDescriptionColumn archetype = { archetype } />
370
373
</ Td >
371
374
< Td { ...getTdProps ( { columnKey : "tags" } ) } >
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
- import { Text } from "@patternfly/react-core" ;
3
-
2
+ import { Text , Tooltip } from "@patternfly/react-core" ;
4
3
import type { Archetype } from "@app/api/models" ;
5
4
6
- // TODO: Truncate length and add tooltip with full text
7
5
const ArchetypeDescriptionColumn : React . FC < { archetype : Archetype } > = ( {
8
6
archetype,
9
- } ) => < Text > { archetype . description } </ Text > ;
7
+ } ) => {
8
+ return (
9
+ < Tooltip content = { archetype . description } >
10
+ < Text > { archetype . description } </ Text >
11
+ </ Tooltip >
12
+ ) ;
13
+ } ;
10
14
11
15
export default ArchetypeDescriptionColumn ;
You can’t perform that action at this time.
0 commit comments