diff --git a/web/src/lib/components/custom/KVTableModal.svelte b/web/src/lib/components/custom/KVTableModal.svelte index ae9b37ed..4c24f5d6 100644 --- a/web/src/lib/components/custom/KVTableModal.svelte +++ b/web/src/lib/components/custom/KVTableModal.svelte @@ -39,7 +39,7 @@ - +
{#if titles.icon} diff --git a/web/src/lib/components/disk/CreatePartition.svelte b/web/src/lib/components/disk/CreatePartition.svelte index 96c9803a..040ae7fd 100644 --- a/web/src/lib/components/disk/CreatePartition.svelte +++ b/web/src/lib/components/disk/CreatePartition.svelte @@ -13,6 +13,7 @@ import humanFormat from 'human-format'; import { tick } from 'svelte'; import toast from 'svelte-french-toast'; + import { slide } from 'svelte/transition'; interface Data { open: boolean; @@ -126,23 +127,48 @@ close()}> -
+
Create Partitions - close()} - > - - +
+ + +
-
+
@@ -192,7 +218,7 @@
-
+
0 ? '' : 'cursor-not-allowed'}>
-
- +
+

Size: {humanFormat(currentPartition)} - +

+

+ Remaining space: {humanFormat(remainingSpace)} +

- - -
-
- Remaining space: {humanFormat(remainingSpace)} -
- - {#if newPartitions.length > 0} - - {/if} + {#if newPartitions.length > 0} +
+ +
+ +
+
- + {/if} diff --git a/web/src/lib/components/ui/custom-input/value.svelte b/web/src/lib/components/ui/custom-input/value.svelte index 2599f75b..8d0b7072 100644 --- a/web/src/lib/components/ui/custom-input/value.svelte +++ b/web/src/lib/components/ui/custom-input/value.svelte @@ -12,6 +12,7 @@ autocomplete?: FullAutoFill | null | undefined; classes: string; type?: string; + textAreaCLasses?: string; } let { @@ -20,17 +21,18 @@ placeholder = '', autocomplete = 'off', classes = 'space-y-1', - type = 'text' + type = 'text', + textAreaCLasses = 'min-h-56' }: Props = $props(); let nanoId = $state(generateNanoId(label)); -
+
{#if type === 'textarea'} -