未验证 提交 70ddb116 编写于 作者: K Kerwin 提交者: GitHub

[Fix][UI] Fix workflow name overlaps bug (#11862) (#12019)

Co-authored-by: NDevosend <devosend@gmail.com>
上级 c4c94327
......@@ -94,6 +94,9 @@ export const COLUMN_WIDTH_CONFIG = {
},
tag: {
width: 160
},
copy: {
width: 50
}
}
......
......@@ -83,7 +83,8 @@ export function useTable() {
title: t('project.workflow.workflow_name'),
key: 'name',
className: 'workflow-name',
width: 200,
...COLUMN_WIDTH_CONFIG['name'],
titleColSpan: 2,
render: (row) =>
h(
NSpace,
......@@ -93,7 +94,7 @@ export function useTable() {
class: styles['workflow-name']
},
{
default: () => [
default: () =>
h(
ButtonLink,
{
......@@ -104,24 +105,34 @@ export function useTable() {
})
},
{
default: () => h(NEllipsis, null, () => row.name)
default: () =>
h(
NEllipsis,
COLUMN_WIDTH_CONFIG['linkEllipsis'],
() => row.name
)
}
),
h(
NButton,
{
quaternary: true,
circle: true,
type: 'info',
size: 'tiny',
onClick: () => void copy(row.name)
},
{ icon: () => h(NIcon, { size: 16 }, () => h(CopyOutlined)) }
)
]
}
)
},
{
title: 'Copy',
key: 'copy',
...COLUMN_WIDTH_CONFIG['copy'],
render: (row) =>
h(
NButton,
{
quaternary: true,
circle: true,
type: 'info',
size: 'tiny',
onClick: () => void copy(row.name)
},
{ icon: () => h(NIcon, { size: 16 }, () => h(CopyOutlined)) }
)
},
{
title: t('project.workflow.status'),
key: 'releaseState',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册