fix(catalog-react): prevent EntityInfoCard header overflow on narrow screens

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-25 11:42:26 +01:00
parent 5081bcc4fa
commit eba2f615b6
2 changed files with 15 additions and 1 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': patch
---
Fixed `EntityInfoCard` header overflowing on narrow screens.
@@ -30,6 +30,10 @@ const useStyles = makeStyles({
root: {
height: '100%',
},
title: {
minWidth: 0,
overflow: 'hidden',
},
footer: {
display: 'flex',
justifyContent: 'flex-end',
@@ -55,7 +59,12 @@ export function EntityInfoCard(props: EntityInfoCardProps) {
{title && (
<CardHeader>
<Flex justify="between" align="center">
<Text as="h3" variant="title-x-small" weight="bold">
<Text
as="h3"
variant="title-x-small"
weight="bold"
className={classes.title}
>
{title}
</Text>
{headerActions && (