fix(hitl): keep audit log tool names on one line

The tool column had no width and broke at every character, so names stacked vertically.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
SycunandCursor committed 2026-11-25 15:38:06 +08:00
1 parent f515aeee1e
commit 9075c8253b
2 files changed
+6 -1

No files matched your search

+4 -1
View File
@@ -152,7 +152,9 @@ export default function LogsPanel({ canWrite, detailId, onOpenDetail, onCloseDet
{
title: t('hitl.colTool', null, '工具'),
dataIndex: 'toolName',
render: value => <span className="hitl-mono">{value || '—'}</span>
width: 220,
ellipsis: true,
render: value => <span className="hitl-mono hitl-ellipsis" title={value || ''}>{value || '—'}</span>
},
{
title: t('hitl.colConversation', null, '会话'),
@@ -230,6 +232,7 @@ export default function LogsPanel({ canWrite, detailId, onOpenDetail, onCloseDet
loading={list.loading}
pagination={pagination}
size="small"
scroll={{ x: 1280 }}
emptyText={t('hitl.logsEmpty', null, '暂无审批日志')}
rowSelection={{
selectedRowKeys: selected,
+2
View File
@@ -99,6 +99,8 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: normal;
overflow-wrap: normal;
vertical-align: bottom;
}