diff --git a/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx b/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx index 40e703a5a3e..b9976733a2c 100644 --- a/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx +++ b/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx @@ -16,33 +16,35 @@ export const WorkersEmptyState = ({ onCreate }: WorkersEmptyStateProps) => { const { can: canDeployWorkers } = useAsyncCheckPermissions(PermissionAction.FUNCTIONS_WRITE, '*') return ( - - } - disabled={!canDeployWorkers} - onClick={onCreate} - tooltip={{ - content: { - side: 'bottom', - text: canDeployWorkers ? undefined : 'You need additional permissions to deploy workers', - }, - }} +
+ {/* Main content + CTA — same EmptyStatePresentational, stripped of its own card chrome so the outer wrapper is the only visible border. */} + - Deploy worker - + } + disabled={!canDeployWorkers} + onClick={onCreate} + tooltip={{ + content: { + side: 'bottom', + text: canDeployWorkers ? undefined : 'You need additional permissions to deploy workers', + }, + }} + > + Deploy worker + + - {/* Capped at 600px and centered regardless of how wide the container grows. */} -
-

Or quickstart a worker with a snippet

+
+

Quickstart with a snippet

- +
) }