Skip to content

Commit b689b12

Browse files
committed
feat(helm-template): enhance styling of environment fields and simplify class names in PodEnvironmentFields component
1 parent 454c5e1 commit b689b12

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

web/src/pages/helm-template/helm-template.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -319,25 +319,25 @@ export const PodEnvironmentFields: React.FC<PodEnvironmentFieldsProps> = ({
319319
</div>
320320
<div className="grid grid-cols-2 gap-4">
321321
{fields.map((field, envIdx) => (
322-
<div className="flex" key={field.id}>
322+
<div
323+
className="flex items-center divide-x divide-gray-200 rounded-md border border-gray-200 dark:divide-gray-500 dark:border-gray-500"
324+
key={field.id}
325+
>
323326
<FormInput
324327
id={`env_name_${envIdx}`}
325328
name={`pods.${podIndex}.environment.${envIdx}.name`}
326329
label=""
327330
placeholder="Env"
328-
className="h-12 w-full divide-gray-200 rounded-md rounded-e-md rounded-s-md border border-gray-200 px-2 outline-none dark:divide-gray-500 dark:border-gray-500 dark:bg-black-1"
331+
className="h-12 w-full rounded-s-md px-2 outline-none"
329332
/>
330333
<FormInput
331334
id={`env_value_${envIdx}`}
332335
name={`pods.${podIndex}.environment.${envIdx}.value`}
333336
label=""
334337
placeholder="Hi"
335-
className={cn(
336-
'h-12 w-full divide-gray-200 rounded-md rounded-e-md border border-gray-200 px-2 outline-none dark:divide-gray-500 dark:border-gray-500 dark:bg-black-1',
337-
{
338-
'rounded-e-md': envIdx === 0,
339-
},
340-
)}
338+
className={cn('h-12 w-full rounded-s-md px-2 outline-none', {
339+
'rounded-e-md': envIdx === 0,
340+
})}
341341
/>
342342
{envIdx > 0 && (
343343
<button

0 commit comments

Comments
 (0)