Revert "fix(catalog-react) : fixing text overflow"

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
Ben Lambert
2024-10-24 13:39:45 +02:00
committed by blam
parent 58789bd199
commit 49375fdc3c
2 changed files with 1 additions and 23 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-catalog-react': patch
---
Fixed bug in `EntityDisplayName` where text was overflowing.
@@ -20,7 +20,6 @@ import Tooltip from '@material-ui/core/Tooltip';
import { Theme, makeStyles } from '@material-ui/core/styles';
import React from 'react';
import { useEntityPresentation } from '../../apis';
import Typography from '@material-ui/core/Typography';
/**
* The available style class keys for {@link EntityDisplayName}, under the name
@@ -35,7 +34,6 @@ const useStyles = makeStyles(
root: {
display: 'inline-flex',
alignItems: 'center',
maxWidth: '100%',
},
icon: {
marginRight: theme.spacing(0.5),
@@ -79,22 +77,7 @@ export const EntityDisplayName = (
);
// The innermost "body" content
let content = (
<Tooltip
title={primaryTitle}
placement="top"
arrow
aria-label={primaryTitle}
>
<Typography
noWrap
title={primaryTitle}
aria-describedby="tooltip-description"
>
{primaryTitle}
</Typography>
</Tooltip>
);
let content = <>{primaryTitle}</>;
// Optionally an icon, and wrapper around them both
content = (