Fix(app/machine/create): fix css styling inconsistencies, remove ability to set tags
This commit is contained in:
@@ -10,11 +10,11 @@ export const MachineAvatar = (props: AvatarProps) => {
|
||||
<div class="">
|
||||
<div
|
||||
class={cx(
|
||||
"rounded-lg border p-2 bg-def-1 border-def-3 size-36",
|
||||
"rounded-lg border p-2 bg-def-1 border-def-3 h-fit",
|
||||
props.class,
|
||||
)}
|
||||
>
|
||||
<RndThumbnail name={props.name || ""} />
|
||||
<RndThumbnail name={props.name || ""} height={120} width={220} />
|
||||
</div>
|
||||
</div>
|
||||
</figure>
|
||||
|
||||
@@ -73,16 +73,17 @@ export function CreateMachine() {
|
||||
<Header title="Create Machine" />
|
||||
<div class="flex w-full p-4">
|
||||
<div class="mt-4 w-full self-stretch px-2">
|
||||
<Form onSubmit={handleSubmit} class="">
|
||||
<Form onSubmit={handleSubmit} class="gap-2 flex flex-col">
|
||||
<Field
|
||||
name="opts.machine.name"
|
||||
validate={[required("This field is required")]}
|
||||
>
|
||||
{(field, props) => (
|
||||
<>
|
||||
<div class="flex justify-center">
|
||||
<div class="flex justify-center mb-4 pb-4 border-b">
|
||||
<MachineAvatar name={field.value} />
|
||||
</div>
|
||||
|
||||
<TextInput
|
||||
inputProps={props}
|
||||
value={`${field.value}`}
|
||||
@@ -105,31 +106,6 @@ export function CreateMachine() {
|
||||
/>
|
||||
)}
|
||||
</Field>
|
||||
<Field name="opts.machine.tags" type="string[]">
|
||||
{(field, props) => (
|
||||
<div class="p-2">
|
||||
<DynForm
|
||||
initialValues={{ tags: ["all"] }}
|
||||
components={{
|
||||
before: <div>Tags</div>,
|
||||
}}
|
||||
schema={{
|
||||
type: "object",
|
||||
properties: {
|
||||
tags: {
|
||||
type: "array",
|
||||
items: {
|
||||
title: "Tag",
|
||||
type: "string",
|
||||
},
|
||||
uniqueItems: true,
|
||||
},
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</Field>
|
||||
<div class=" " tabindex="0">
|
||||
<input type="checkbox" />
|
||||
<div class=" font-medium ">Deployment Settings</div>
|
||||
|
||||
Reference in New Issue
Block a user