Fix MembersListCard description overflow.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
This commit is contained in:
Jussi Hallila
2024-11-13 15:32:26 +01:00
parent 65e2fbe129
commit a278fdd91b
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-org': patch
---
Fix rendering of description in MembersListCard. Add guardrails for potential long texts to prevent it from breaking the UI.
@@ -112,7 +112,9 @@ const MemberComponent = (props: { member: UserEntity }) => {
</Link>
)}
{description && (
<Typography variant="subtitle2">{description}</Typography>
<Typography variant="subtitle2">
<OverflowTooltip text={description} line={5} />
</Typography>
)}
</Box>
</Box>