style: table list col span

This commit is contained in:
jialin
2025-03-27 16:11:49 +08:00
parent 618cd667fc
commit 8d444f24f8
2 changed files with 12 additions and 10 deletions
@@ -546,7 +546,7 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
<RowChildren> <RowChildren>
<Row style={{ width: '100%' }} align="middle"> <Row style={{ width: '100%' }} align="middle">
<Col <Col
span={5} span={6}
style={{ style={{
paddingInline: 'var(--ant-table-cell-padding-inline)' paddingInline: 'var(--ant-table-cell-padding-inline)'
}} }}
@@ -563,7 +563,7 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
)} )}
</span> </span>
</Col> </Col>
<Col span={6}> <Col span={7}>
<span <span
style={{ style={{
paddingLeft: '58px', paddingLeft: '58px',
@@ -596,13 +596,15 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
></RenderWorkerDownloading> ></RenderWorkerDownloading>
</span> </span>
</Col> </Col>
<Col span={5}> <Col span={4}>
<span style={{ paddingLeft: 45 }} className="flex"> <span style={{ paddingLeft: 45 }} className="flex">
{dayjs(instanceData.created_at).format('YYYY-MM-DD HH:mm:ss')} <AutoTooltip ghost>
{dayjs(instanceData.created_at).format('YYYY-MM-DD HH:mm:ss')}
</AutoTooltip>
</span> </span>
</Col> </Col>
<Col span={4}> <Col span={3}>
<div style={{ paddingLeft: 39 }}> <div style={{ paddingLeft: 36 }}>
<DropdownButtons <DropdownButtons
items={actionItems} items={actionItems}
onSelect={handleOnSelect} onSelect={handleOnSelect}
+4 -4
View File
@@ -556,7 +556,7 @@ const Models: React.FC<ModelsProps> = ({
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name',
width: 400, width: 400,
span: 5, span: 6,
render: (text: string, record: ListItem) => ( render: (text: string, record: ListItem) => (
<span className="flex-center" style={{ maxWidth: '100%' }}> <span className="flex-center" style={{ maxWidth: '100%' }}>
<AutoTooltip ghost> <AutoTooltip ghost>
@@ -570,7 +570,7 @@ const Models: React.FC<ModelsProps> = ({
title: intl.formatMessage({ id: 'models.form.source' }), title: intl.formatMessage({ id: 'models.form.source' }),
dataIndex: 'source', dataIndex: 'source',
key: 'source', key: 'source',
span: 6, span: 7,
render: (text: string, record: ListItem) => ( render: (text: string, record: ListItem) => (
<span className="flex flex-column" style={{ width: '100%' }}> <span className="flex flex-column" style={{ width: '100%' }}>
<AutoTooltip ghost>{generateSource(record)}</AutoTooltip> <AutoTooltip ghost>{generateSource(record)}</AutoTooltip>
@@ -610,7 +610,7 @@ const Models: React.FC<ModelsProps> = ({
defaultSortOrder: 'descend', defaultSortOrder: 'descend',
sortOrder, sortOrder,
sorter: false, sorter: false,
span: 5, span: 4,
render: (text: number) => ( render: (text: number) => (
<AutoTooltip ghost> <AutoTooltip ghost>
{dayjs(text).format('YYYY-MM-DD HH:mm:ss')} {dayjs(text).format('YYYY-MM-DD HH:mm:ss')}
@@ -621,7 +621,7 @@ const Models: React.FC<ModelsProps> = ({
title: intl.formatMessage({ id: 'common.table.operation' }), title: intl.formatMessage({ id: 'common.table.operation' }),
key: 'operation', key: 'operation',
dataIndex: 'operation', dataIndex: 'operation',
span: 4, span: 3,
render: (text, record) => ( render: (text, record) => (
<DropdownButtons <DropdownButtons
items={setModelActionList(record)} items={setModelActionList(record)}