feat(ComboControl): add reduced flag that removes increase/decrease buttons keeping the slider popover

This commit is contained in:
Ilia Mashkov
2026-02-07 11:24:44 +03:00
parent 4891cd3bbd
commit 46a3c3e8fc
2 changed files with 33 additions and 23 deletions

View File

@@ -31,7 +31,7 @@ $effect(() => {
});
</script>
<div class="py-2 px-10 flex flex-row items-center gap-2">
<div class="sm:py-2 sm:px-10 flex flex-row items-center gap-2">
<div class="flex flex-row gap-3">
{#each controlManager.controls as control (control.id)}
<ComboControl
@@ -39,6 +39,7 @@ $effect(() => {
increaseLabel={control.increaseLabel}
decreaseLabel={control.decreaseLabel}
controlLabel={control.controlLabel}
reduced={responsive.isMobile}
/>
{/each}
</div>