feat: enhance styling for action buttons in detail and form page providers

This commit is contained in:
Firman Ramdhani
2026-07-27 12:03:01 +07:00
parent 5f97c6b2b0
commit 3dcc084dfc
2 changed files with 8 additions and 4 deletions
@@ -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}