-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Truncate archatype description (#1634)
https://issues.redhat.com/browse/MTA-1921 Signed-off-by: ibolton336 <[email protected]>
- Loading branch information
1 parent
e4233f4
commit d615512
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
client/src/app/pages/archetypes/components/archetype-description-column.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import React from "react"; | ||
import { Text } from "@patternfly/react-core"; | ||
|
||
import { Text, Tooltip } from "@patternfly/react-core"; | ||
import type { Archetype } from "@app/api/models"; | ||
|
||
// TODO: Truncate length and add tooltip with full text | ||
const ArchetypeDescriptionColumn: React.FC<{ archetype: Archetype }> = ({ | ||
archetype, | ||
}) => <Text>{archetype.description}</Text>; | ||
}) => { | ||
return ( | ||
<Tooltip content={archetype.description}> | ||
<Text>{archetype.description}</Text> | ||
</Tooltip> | ||
); | ||
}; | ||
|
||
export default ArchetypeDescriptionColumn; |