fix: Alpha 列表失败项单行省略并提供完整提示

This commit is contained in:
yuxuanhui
2026-09-10 14:09:39 +08:00
parent ac92b3e70b
commit f8e23dccb9
2 changed files with 44 additions and 2 deletions
+19 -2
View File
@@ -15,6 +15,7 @@ import {
Tag,
TextArea,
Toast,
Typography,
} from "@douyinfe/semi-ui-19";
import type { ColumnProps } from "@douyinfe/semi-ui-19/lib/es/table/interface";
import {
@@ -487,9 +488,25 @@ export function AlphaPage({
title: "失败项",
width: 230,
render: (_, row) => (
<span title={row!.failed_checks?.join("、")}>
<Typography.Text
className="alpha-failed-checks"
size="inherit"
style={{ width: "100%" }}
ellipsis={{
showTooltip: {
opts: {
content: row!.failed_checks?.join("\n"),
style: {
whiteSpace: "pre-line",
overflowWrap: "anywhere",
maxWidth: 420,
},
},
},
}}
>
{row!.failed_checks?.join("、") || "—"}
</span>
</Typography.Text>
),
},
{