+ {headerAction && (
+
+
{scriptData?.name || "New Script"}
+
+
+
+
+
+ )}
{/* Name */}
-
+
{isLoading ? (
@@ -139,7 +158,6 @@ export const CreateUpdateRunnerScript = observer(function CreateUpdateRunnerScri
)}
/>
)}
- {headerAction}
{/* Script Type */}
@@ -186,17 +204,25 @@ export const CreateUpdateRunnerScript = observer(function CreateUpdateRunnerScri
{/* Form Actions */}
- {!isReadOnly && (
+ {!isReadOnly && !headerAction && (
-
)}
-
+
);
});
diff --git a/apps/web/core/components/runners/form/select-script-type.tsx b/apps/web/core/components/runners/form/select-script-type.tsx
index d7af8f8d1e..2a2a29cc3f 100644
--- a/apps/web/core/components/runners/form/select-script-type.tsx
+++ b/apps/web/core/components/runners/form/select-script-type.tsx
@@ -40,9 +40,9 @@ export function SelectScriptType({ onScriptTypeChange, scriptType }: Props) {
value: type.toString(),
}))}
disableSearch
- buttonContainerClassName="bg-surface-1 border border-subtle-1 rounded-md px-2 py-1 w-full h-[30px]"
+ buttonContainerClassName="bg-surface-1 border border-subtle-1 rounded-md px-2 py-1 h-[30px] min-w-[250px]"
buttonContent={(isOpen, val) => (
-