+
)}
@@ -221,8 +223,8 @@ export function ConfigTemplateEditor({ config, onSaved }: ConfigTemplateEditorPr
w-full p-3 font-mono text-sm rounded-lg border-2
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent
transition-all duration-200
- ${isValidJson
- ? 'border-green-300 bg-green-50'
+ ${isValidJson
+ ? 'border-green-300 bg-green-50'
: 'border-red-300 bg-red-50'
}
`}
@@ -230,7 +232,7 @@ export function ConfigTemplateEditor({ config, onSaved }: ConfigTemplateEditorPr
onChange={(e) => handleDraftChange(e.target.value)}
onKeyDown={handleKeyDown}
rows={20}
- style={{ whiteSpace: 'pre', overflowX: 'auto' }}
+ style={{ whiteSpace: 'pre', overflowX: 'auto', flex: '1 1 auto', minHeight: '200px' }}
spellCheck={false}
/>
diff --git a/src/componets/content/Content.tsx b/src/componets/content/Content.tsx
index 0f13bd4..df011a5 100644
--- a/src/componets/content/Content.tsx
+++ b/src/componets/content/Content.tsx
@@ -59,10 +59,10 @@ export function Content({ config, env, onTemplateSaved }: ContentProps) {
function ContentParams({ env }: { env: Env }) {
const xml = Builder.getEnv(env).build();
-
+
return (
-
-
+
+
);
}
@@ -79,8 +79,8 @@ ${templateContent}
`;
return (
-
-
+
+
);
}
@@ -97,8 +97,8 @@ function ContentTest({ config, env }: { config: Config; env: Env }) {
}));
return (
-
-
+
+
-
-
+
+
+
+
);
}