fix(org): prevent profile card content overflow on narrow screens

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-25 11:43:31 +01:00
parent eba2f615b6
commit 87eb31c141
4 changed files with 14 additions and 3 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-org': patch
---
Fixed `GroupProfileCard` and `UserProfileCard` content overflowing on narrow screens.
+2 -1
View File
@@ -138,5 +138,6 @@ export const UserProfileCard: (props: {
export type UserProfileCardClassKey =
| 'closeButton'
| 'moreButton'
| 'dialogPaper';
| 'dialogPaper'
| 'list';
```
@@ -64,6 +64,7 @@ const useStyles = makeStyles(theme => ({
list: {
padding: 0,
marginLeft: theme.spacing(0.5),
overflowWrap: 'anywhere',
},
}));
@@ -56,7 +56,8 @@ import { orgTranslationRef } from '../../../../translation';
export type UserProfileCardClassKey =
| 'closeButton'
| 'moreButton'
| 'dialogPaper';
| 'dialogPaper'
| 'list';
const useStyles = makeStyles(
theme =>
@@ -74,6 +75,9 @@ const useStyles = makeStyles(
dialogPaper: {
minHeight: 400,
},
list: {
overflowWrap: 'anywhere',
},
}),
{ name: 'PluginOrgUserProfileCard' },
);
@@ -149,7 +153,7 @@ export const UserProfileCard = (props: {
>
{description && <Text color="secondary">{description}</Text>}
<Box p="2">
<List>
<List className={classes.list}>
{profile?.email && (
<ListItem>
<ListItemIcon>