fix(catalog-react): prevent EntityInfoCard header overflow on narrow screens
Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user