mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-18 22:53:09 +00:00
fix(ui): column name overlapping in entity table (#14086)
* fix column name overlaping in entity table * minor fixes
This commit is contained in:
parent
845a2e585e
commit
1540329e1e
@ -41,15 +41,17 @@ const ContainerChildren: FC<ContainerChildrenProps> = ({
|
||||
{
|
||||
title: t('label.name'),
|
||||
dataIndex: 'name',
|
||||
width: '200px',
|
||||
width: 400,
|
||||
key: 'name',
|
||||
render: (_, record) => (
|
||||
<Link
|
||||
className="link-hover"
|
||||
data-testid="container-name"
|
||||
to={getContainerDetailPath(record.fullyQualifiedName || '')}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
<div className="d-inline-flex w-max-90">
|
||||
<Link
|
||||
className="break-word"
|
||||
data-testid="container-name"
|
||||
to={getContainerDetailPath(record.fullyQualifiedName ?? '')}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -421,19 +421,25 @@ const DashboardDetails = ({
|
||||
}),
|
||||
dataIndex: 'chartName',
|
||||
key: 'chartName',
|
||||
width: 200,
|
||||
width: 220,
|
||||
fixed: 'left',
|
||||
render: (_, record) => {
|
||||
const chartName = getEntityName(record);
|
||||
|
||||
return record.sourceUrl ? (
|
||||
<Typography.Link href={record.sourceUrl} target="_blank">
|
||||
<Space>
|
||||
{chartName}
|
||||
<ExternalLinkIcon height={14} width={14} />
|
||||
</Space>
|
||||
</Typography.Link>
|
||||
<div className="d-flex items-center">
|
||||
<Typography.Link href={record.sourceUrl} target="_blank">
|
||||
<span className="break-all">{chartName}</span>
|
||||
|
||||
<ExternalLinkIcon
|
||||
className="m-l-xs flex-none"
|
||||
height={14}
|
||||
width={14}
|
||||
/>
|
||||
</Typography.Link>
|
||||
</div>
|
||||
) : (
|
||||
<Typography.Text>{chartName}</Typography.Text>
|
||||
<Typography.Text className="w-full">{chartName}</Typography.Text>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
@ -64,11 +64,14 @@ const DataModelTable = () => {
|
||||
const dataModelDisplayName = getEntityName(record);
|
||||
|
||||
return (
|
||||
<Link
|
||||
data-testid={`data-model-${dataModelDisplayName}`}
|
||||
to={getDataModelDetailsPath(record.fullyQualifiedName || '')}>
|
||||
{dataModelDisplayName}
|
||||
</Link>
|
||||
<div className="d-inline-flex w-max-90">
|
||||
<Link
|
||||
className="break-word"
|
||||
data-testid={`data-model-${dataModelDisplayName}`}
|
||||
to={getDataModelDetailsPath(record.fullyQualifiedName || '')}>
|
||||
{dataModelDisplayName}
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
@ -78,6 +78,7 @@ const ModelTab = ({
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
width: 250,
|
||||
fixed: 'left',
|
||||
render: (_, record) => (
|
||||
<Typography.Text>{getEntityName(record)}</Typography.Text>
|
||||
),
|
||||
|
@ -370,7 +370,8 @@ const PipelineDetails = ({
|
||||
key: t('label.name'),
|
||||
dataIndex: 'name',
|
||||
title: t('label.name'),
|
||||
width: 200,
|
||||
width: 220,
|
||||
fixed: 'left',
|
||||
render: (_, record) =>
|
||||
isEmpty(record.sourceUrl) ? (
|
||||
<span>{getEntityName(record)}</span>
|
||||
@ -379,8 +380,15 @@ const PipelineDetails = ({
|
||||
className="flex items-center gap-2"
|
||||
target="_blank"
|
||||
to={{ pathname: record.sourceUrl }}>
|
||||
<span>{getEntityName(record)}</span>
|
||||
<ExternalLinkIcon height={14} width={14} />
|
||||
<div className="d-flex items-center">
|
||||
<span className="break-all">{getEntityName(record)}</span>
|
||||
|
||||
<ExternalLinkIcon
|
||||
className="m-l-xs flex-none"
|
||||
height={14}
|
||||
width={14}
|
||||
/>
|
||||
</div>
|
||||
</Link>
|
||||
),
|
||||
},
|
||||
|
@ -325,7 +325,8 @@ const SchemaTable = ({
|
||||
|
||||
<Typography.Text
|
||||
className="m-b-0 d-block text-grey-muted"
|
||||
data-testid="column-name">
|
||||
data-testid="column-name"
|
||||
ellipsis={{ tooltip: true }}>
|
||||
{name}
|
||||
</Typography.Text>
|
||||
</div>
|
||||
|
@ -16,7 +16,6 @@ import {
|
||||
Radio,
|
||||
RadioChangeEvent,
|
||||
Row,
|
||||
Space,
|
||||
Tag,
|
||||
Tooltip,
|
||||
Typography,
|
||||
@ -128,17 +127,17 @@ const TopicSchemaFields: FC<TopicSchemaFieldsProps> = ({
|
||||
|
||||
const renderSchemaName = useCallback(
|
||||
(_, record: Field) => (
|
||||
<Space align="start" className="w-max-90 vertical-align-inherit" size={2}>
|
||||
<div className="d-inline-flex w-max-90 vertical-align-inherit">
|
||||
<Tooltip destroyTooltipOnHide title={getEntityName(record)}>
|
||||
<Typography.Text className="break-word">
|
||||
<span className="break-word">
|
||||
{isVersionView ? (
|
||||
<RichTextEditorPreviewer markdown={getEntityName(record)} />
|
||||
) : (
|
||||
getEntityName(record)
|
||||
)}
|
||||
</Typography.Text>
|
||||
</span>
|
||||
</Tooltip>
|
||||
</Space>
|
||||
</div>
|
||||
),
|
||||
[isVersionView]
|
||||
);
|
||||
|
@ -74,18 +74,21 @@ function SchemaTablesTab({
|
||||
title: t('label.name'),
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
width: 500,
|
||||
render: (_, record: Table) => {
|
||||
return (
|
||||
<Link
|
||||
to={getEntityLink(
|
||||
EntityType.TABLE,
|
||||
record.fullyQualifiedName as string
|
||||
)}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
<div className="d-inline-flex w-max-90">
|
||||
<Link
|
||||
className="break-word"
|
||||
to={getEntityLink(
|
||||
EntityType.TABLE,
|
||||
record.fullyQualifiedName as string
|
||||
)}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
className: 'truncate w-max-500',
|
||||
},
|
||||
{
|
||||
title: t('label.description'),
|
||||
|
@ -11,7 +11,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Space, Tooltip, Typography } from 'antd';
|
||||
import { Tooltip, Typography } from 'antd';
|
||||
import { ColumnsType } from 'antd/lib/table';
|
||||
import { cloneDeep, isEmpty, isUndefined, toLower } from 'lodash';
|
||||
import { EntityTags } from 'Models';
|
||||
@ -171,15 +171,12 @@ const SearchIndexFieldsTable = ({
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
accessor: 'name',
|
||||
width: 180,
|
||||
width: 220,
|
||||
fixed: 'left',
|
||||
render: (_, record: SearchIndexField) => (
|
||||
<Space
|
||||
align="start"
|
||||
className="w-max-90 vertical-align-inherit"
|
||||
size={2}>
|
||||
<div className="d-inline-flex w-max-90">
|
||||
<span className="break-word">{getEntityName(record)}</span>
|
||||
</Space>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -92,13 +92,16 @@ const StoredProcedureTab = () => {
|
||||
key: 'name',
|
||||
width: 350,
|
||||
render: (_, record) => (
|
||||
<Link
|
||||
to={getEntityLink(
|
||||
EntityType.STORED_PROCEDURE,
|
||||
record.fullyQualifiedName ?? ''
|
||||
)}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
<div className="d-inline-flex w-max-90">
|
||||
<Link
|
||||
className="break-word"
|
||||
to={getEntityLink(
|
||||
EntityType.STORED_PROCEDURE,
|
||||
record.fullyQualifiedName ?? ''
|
||||
)}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -34,15 +34,19 @@ export const schemaTableColumns: ColumnsType<DatabaseSchema> = [
|
||||
title: t('label.schema-name'),
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
width: 250,
|
||||
render: (_, record: DatabaseSchema) => (
|
||||
<Link
|
||||
to={
|
||||
record.fullyQualifiedName
|
||||
? getDatabaseSchemaDetailsPath(record.fullyQualifiedName)
|
||||
: ''
|
||||
}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
<div className="d-inline-flex w-max-90">
|
||||
<Link
|
||||
className="break-word"
|
||||
to={
|
||||
record.fullyQualifiedName
|
||||
? getDatabaseSchemaDetailsPath(record.fullyQualifiedName)
|
||||
: ''
|
||||
}>
|
||||
{getEntityName(record)}
|
||||
</Link>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user