diff --git a/src/shared/ui/ComboControlV2/ComboControlV2.svelte b/src/shared/ui/ComboControlV2/ComboControlV2.svelte index ebbbe8c..6e5126b 100644 --- a/src/shared/ui/ComboControlV2/ComboControlV2.svelte +++ b/src/shared/ui/ComboControlV2/ComboControlV2.svelte @@ -4,11 +4,29 @@ --> -
- - -
-
- {#each Array(5) as _, i} +{#snippet ComboControl()} +
+
+ {#if showScale}
- - { - Number.isInteger(control.step) - ? Math.round(control.min + (i * (control.max - control.min) / 4)) - : (control.min + (i * (control.max - control.min) / 4)).toFixed(2) - } - -
+ {#each Array(5) as _, i} +
+ + {calculateScale(i)} + +
+
+
+ {/each}
- {/each} + {/if} + +
- -
- {#if label} -
-
-
- - {label} - -
- {/if} -
+ {#if label} +
+
+
+ + {label} + +
+ {/if} +
+{/snippet} + +{#if reduced} + {@render ComboControl()} +{:else} + + + + + {#snippet icon({ className })} + + {/snippet} + + + + {#snippet child({ props })} + + {/snippet} + + + {@render ComboControl()} + + + + + {#snippet icon({ className })} + + {/snippet} + + + + {#if controlLabel} + + {controlLabel} + + {/if} + +{/if}