fix(table): fix table display

This commit is contained in:
zhangheng
2026-04-22 14:06:20 +08:00
parent 1211b79dc3
commit 4311cd67eb
2 changed files with 27 additions and 3 deletions

View File

@@ -103,7 +103,19 @@ export default function PersonalProjectTable() {
title: "项目名称",
width: 160,
render: (record: Project.PersonProjectDashboardResponseItem) => {
return record.project_name ?? "-"
return (
<Text
title={record.project_name ?? "-"}
style={{
fontSize: "14px",
maxWidth: "100%",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
}}>
{record.project_name ?? "-"}
</Text>
)
},
},
{

View File

@@ -78,9 +78,21 @@ export default function PersonalTaskTable() {
{
accessor: "project_name",
title: "项目名称",
width: 150,
width: 160,
render: (record: Task.SimpleTaskItem) => {
return <Text>{record.project_name}</Text>
return (
<Text
title={record.project_name ?? "-"}
style={{
fontSize: "14px",
maxWidth: "100%",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
}}>
{record.project_name ?? "-"}
</Text>
)
},
},
{