Adjust ObjectTable fixed column behavior for mobile and update action column width calculation
This commit is contained in:
parent
030053b965
commit
8ed0287d73
@ -600,7 +600,7 @@ const ObjectTable = forwardRef(
|
|||||||
title: prop.label,
|
title: prop.label,
|
||||||
dataIndex: prop.name,
|
dataIndex: prop.name,
|
||||||
width: prop.columnWidth || width,
|
width: prop.columnWidth || width,
|
||||||
fixed: fixed,
|
fixed: isMobile ? undefined : fixed,
|
||||||
key: prop.name,
|
key: prop.name,
|
||||||
render: (text, record) => {
|
render: (text, record) => {
|
||||||
if (record?.isSkeleton) {
|
if (record?.isSkeleton) {
|
||||||
@ -651,7 +651,7 @@ const ObjectTable = forwardRef(
|
|||||||
),
|
),
|
||||||
key: 'actions',
|
key: 'actions',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 80 + rowActions.length * 40, // Adjust width based on number of actions
|
width: 20 + rowActions.length * 30, // Adjust width based on number of actions
|
||||||
render: (record) => {
|
render: (record) => {
|
||||||
return renderActions(record)
|
return renderActions(record)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user