fix(style): model file list text overflow

This commit is contained in:
jialin
2026-01-13 18:43:11 +08:00
parent 5ff26e1ce8
commit 741cf07f2e
11 changed files with 30 additions and 43 deletions
@@ -31,6 +31,7 @@ const TextWrapper = styled.div`
align-items: center;
cursor: pointer;
height: 100%;
min-width: 32px;
`;
const PathWrapper = styled.div`
@@ -267,9 +268,7 @@ const useFilesColumns = (props: {
title: intl.formatMessage({ id: 'models.form.source' }),
dataIndex: 'source',
sorter: tableSorter(1),
ellipsis: {
showTitle: false
},
minWidth: 32,
render: (text: string, record: ListItem) => {
const modelInfo = getModelInfo(record);
const { source } = modelInfo;
@@ -286,10 +285,7 @@ const useFilesColumns = (props: {
title: intl.formatMessage({ id: 'resources.worker' }),
dataIndex: 'worker_id',
sorter: tableSorter(2),
width: '18%',
ellipsis: {
showTitle: false
},
minWidth: 32,
render: (text: string, record: ListItem) => {
return (
<AutoTooltip ghost>
@@ -51,6 +51,7 @@ const useGPUColumns = (props: {
title: intl.formatMessage({ id: 'common.table.name' }),
dataIndex: 'name',
width: 240,
minWidth: 32,
sorter: tableSorter(1),
render: (text: string, record: GPUDeviceItem) => (
<AutoTooltip ghost maxWidth={240}>
@@ -68,9 +69,6 @@ const useGPUColumns = (props: {
title: intl.formatMessage({ id: 'clusters.title' }),
dataIndex: 'cluster_id',
sorter: tableSorter(3),
ellipsis: {
showTitle: false
},
render: (text: number, record: GPUDeviceItem) => (
<AutoTooltip ghost>
{clusterList.find((item) => item.value === text)?.label}
@@ -81,9 +79,6 @@ const useGPUColumns = (props: {
title: intl.formatMessage({ id: 'resources.worker' }),
dataIndex: 'worker_name',
sorter: tableSorter(4),
ellipsis: {
showTitle: false
},
render: (text: string, record: GPUDeviceItem) => (
<AutoTooltip ghost>{text}</AutoTooltip>
)
@@ -279,7 +279,7 @@ const useWorkerColumns = ({
width: 100,
sorter: tableSorter(1),
render: (text: string) => (
<AutoTooltip ghost maxWidth={240}>
<AutoTooltip ghost maxWidth={200}>
{text}
</AutoTooltip>
)