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,
|
||||
dataIndex: prop.name,
|
||||
width: prop.columnWidth || width,
|
||||
fixed: fixed,
|
||||
fixed: isMobile ? undefined : fixed,
|
||||
key: prop.name,
|
||||
render: (text, record) => {
|
||||
if (record?.isSkeleton) {
|
||||
@ -651,7 +651,7 @@ const ObjectTable = forwardRef(
|
||||
),
|
||||
key: 'actions',
|
||||
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) => {
|
||||
return renderActions(record)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user