Skip to content

Commit 4d55658

Browse files
authored
Merge pull request #1218 from Dokploy/1059-inconsistence-layout-resource
refactor: adjust order
2 parents 780fa6b + 8e51ded commit 4d55658

File tree

1 file changed

+31
-32
lines changed

1 file changed

+31
-32
lines changed

apps/dokploy/components/dashboard/application/advanced/show-resources.tsx

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -144,38 +144,6 @@ export const ShowResources = ({ id, type }: Props) => {
144144
className="grid w-full gap-8 "
145145
>
146146
<div className="grid w-full md:grid-cols-2 gap-4">
147-
<FormField
148-
control={form.control}
149-
name="memoryReservation"
150-
render={({ field }) => (
151-
<FormItem>
152-
<div className="flex items-center gap-2">
153-
<FormLabel>Memory Reservation</FormLabel>
154-
<TooltipProvider>
155-
<Tooltip delayDuration={0}>
156-
<TooltipTrigger>
157-
<InfoIcon className="h-4 w-4 text-muted-foreground" />
158-
</TooltipTrigger>
159-
<TooltipContent>
160-
<p>
161-
Memory soft limit in bytes. Example: 256MB =
162-
268435456 bytes
163-
</p>
164-
</TooltipContent>
165-
</Tooltip>
166-
</TooltipProvider>
167-
</div>
168-
<FormControl>
169-
<Input
170-
placeholder="268435456 (256MB in bytes)"
171-
{...field}
172-
/>
173-
</FormControl>
174-
<FormMessage />
175-
</FormItem>
176-
)}
177-
/>
178-
179147
<FormField
180148
control={form.control}
181149
name="memoryLimit"
@@ -209,6 +177,37 @@ export const ShowResources = ({ id, type }: Props) => {
209177
);
210178
}}
211179
/>
180+
<FormField
181+
control={form.control}
182+
name="memoryReservation"
183+
render={({ field }) => (
184+
<FormItem>
185+
<div className="flex items-center gap-2">
186+
<FormLabel>Memory Reservation</FormLabel>
187+
<TooltipProvider>
188+
<Tooltip delayDuration={0}>
189+
<TooltipTrigger>
190+
<InfoIcon className="h-4 w-4 text-muted-foreground" />
191+
</TooltipTrigger>
192+
<TooltipContent>
193+
<p>
194+
Memory soft limit in bytes. Example: 256MB =
195+
268435456 bytes
196+
</p>
197+
</TooltipContent>
198+
</Tooltip>
199+
</TooltipProvider>
200+
</div>
201+
<FormControl>
202+
<Input
203+
placeholder="268435456 (256MB in bytes)"
204+
{...field}
205+
/>
206+
</FormControl>
207+
<FormMessage />
208+
</FormItem>
209+
)}
210+
/>
212211

213212
<FormField
214213
control={form.control}

0 commit comments

Comments
 (0)