feat: enhance styling for action buttons in detail and form page providers
This commit is contained in:
@@ -677,7 +677,14 @@ export function EnterpriseDetailPageProvider<E extends BaseEntity = BaseEntity>(
|
||||
return {
|
||||
size: 'xs',
|
||||
p: action.key === ModuleAction.CREATE ? undefined : 5,
|
||||
style: { fontSize: 12 },
|
||||
style:
|
||||
action.key === ModuleAction.CREATE
|
||||
? {
|
||||
fontSize: 12,
|
||||
boxShadow:
|
||||
'0 4px 14px 0 color-mix(in srgb, var(--mantine-primary-color-filled) 40%, transparent)',
|
||||
}
|
||||
: { fontSize: 12 },
|
||||
};
|
||||
}}
|
||||
actions={detailData ? pageActions : []}
|
||||
|
||||
@@ -360,9 +360,6 @@ export function EnterpriseFormPageProvider<E extends BaseEntity = BaseEntity>(pr
|
||||
py={py}
|
||||
headerSlot={
|
||||
<ModulePageHeader
|
||||
customButtonProps={() => {
|
||||
return { size: 'sm', style: { fontSize: 12 } };
|
||||
}}
|
||||
actions={formPageType === 'CREATE' || detailData ? pageActions : []}
|
||||
{...pageHeaderPropsValue}
|
||||
moduleKey={moduleKey}
|
||||
|
||||
Reference in New Issue
Block a user