Skip to content

Commit 5df7e23

Browse files
committed
chore: Update resource-limits.blade.php with improved input field helpers
1 parent 35d9691 commit 5df7e23

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

resources/views/livewire/project/shared/resource-limits.blade.php

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,35 @@
88
<h3 class="pt-4">Limit CPUs</h3>
99
<div class="flex gap-2">
1010
<x-forms.input placeholder="1.5"
11-
helper="0 means use all CPUs. Floating point number, like 0.002 or 1.5. More info <a class='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>."
11+
helper="0 means use all CPUs. Floating point number, like 0.002 or 1.5. More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>."
1212
label="Number of CPUs" id="resource.limits_cpus" />
1313
<x-forms.input placeholder="0-2"
14-
helper="Empty means, use all CPU sets. 0-2 will use CPU 0, CPU 1 and CPU 2. More info <a class='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>."
14+
helper="Empty means, use all CPU sets. 0-2 will use CPU 0, CPU 1 and CPU 2. More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>."
1515
label="CPU sets to use" id="resource.limits_cpuset" />
1616
<x-forms.input placeholder="1024"
17-
helper="More info <a class='dark:text-white underline' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>."
17+
helper="More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/engine/reference/run/#cpu-share-constraint'>here</a>."
1818
label="CPU Weight" id="resource.limits_cpu_shares" />
1919
</div>
2020
<h3 class="pt-4">Limit Memory</h3>
21-
<div class="flex gap-2">
22-
<x-forms.input placeholder="69b or 420k or 1337m or 1g" label="Soft Memory Limit"
23-
id="resource.limits_memory_reservation" />
24-
<x-forms.input placeholder="69b or 420k or 1337m or 1g" label="Maximum Memory Limit"
25-
id="resource.limits_memory" />
26-
<x-forms.input placeholder="69b or 420k or 1337m or 1g" label="Maximum Swap Limit"
27-
id="resource.limits_memory_swap" />
28-
<x-forms.input placeholder="0-100" type="number" min="0" max="100" label="Swappiness"
29-
id="resource.limits_memory_swappiness" />
21+
<div class="flex flex-col gap-2">
22+
<div class="flex gap-2">
23+
<x-forms.input
24+
helper="Examples: 69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_reservation'>here</a>."
25+
label="Soft Memory Limit" id="resource.limits_memory_reservation" />
26+
<x-forms.input
27+
helper="0-100.<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_swappiness'>here</a>."
28+
type="number" min="0" max="100" label="Swappiness"
29+
id="resource.limits_memory_swappiness" />
30+
</div>
31+
<div class="flex gap-2">
32+
<x-forms.input
33+
helper="Examples: 69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#mem_limit'>here</a>."
34+
label="Maximum Memory Limit" id="resource.limits_memory" />
35+
<x-forms.input
36+
helper="Examples:69b (byte) or 420k (kilobyte) or 1337m (megabyte) or 1g (gigabyte).<br>More info <a class='underline dark:text-white' target='_blank' href='https://docs.docker.com/compose/compose-file/05-services/#memswap_limit'>here</a>."
37+
label="Maximum Swap Limit" id="resource.limits_memory_swap" />
38+
39+
</div>
3040
</div>
3141
</form>
3242
</div>

0 commit comments

Comments
 (0)