Adjust ObjectTable fixed column behavior for mobile and update action column width calculation

This commit is contained in:
Tom Butcher 2025-11-23 13:21:48 +00:00
parent 030053b965
commit 8ed0287d73

View File

@ -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)
}