Merge pull request #27625 from RoadieHQ/fix-memberslist-card-overflow

Fix MembersListCard description overflow.
This commit is contained in:
Patrik Oldsberg
2024-11-19 11:43:03 +01:00
committed by GitHub
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>