feat(CatalogTable): truncate long description with ellipsis and tooltip
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
} from '@backstage/catalog-model';
|
||||
import {
|
||||
CodeSnippet,
|
||||
OverflowTooltip,
|
||||
Table,
|
||||
TableColumn,
|
||||
TableFilter,
|
||||
@@ -92,6 +93,12 @@ const columns: TableColumn<EntityRow>[] = [
|
||||
{
|
||||
title: 'Description',
|
||||
field: 'entity.metadata.description',
|
||||
render: ({ entity }) => (
|
||||
<OverflowTooltip
|
||||
title={entity.metadata.description as string}
|
||||
text={entity.metadata.description}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Tags',
|
||||
|
||||
Reference in New Issue
Block a user