diff --git a/frontend/src/components/form/DoubleRangeSlider.svelte b/frontend/src/components/form/DoubleRangeSlider.svelte index a7730b5..dc88f8f 100644 --- a/frontend/src/components/form/DoubleRangeSlider.svelte +++ b/frontend/src/components/form/DoubleRangeSlider.svelte @@ -89,6 +89,8 @@ let rightOffset = 0; $: { + console.log(end) + if (prevWidth !== width) { leftOffset = (width - (sliderDiameter / 2)) * ((start - min) / (max - min)); rightOffset = (width - (sliderDiameter / 2)) * ((end - min) / (max - min)); diff --git a/frontend/src/components/manage/FormInputRow.svelte b/frontend/src/components/manage/FormInputRow.svelte index f91b6af..698283a 100644 --- a/frontend/src/components/manage/FormInputRow.svelte +++ b/frontend/src/components/manage/FormInputRow.svelte @@ -30,14 +30,18 @@ placeholder="Placeholder text for the field, just like this text" />
- +
- + {#if data.style == 1} + + {:else} + + {/if}
@@ -117,6 +121,14 @@ function forwardMove(direction) { dispatch('move', {direction: direction}); } + + function updateStyle(e) { + if (e.target.value == 1) { // Short + if (data.max_length > 255) { + data.max_length = 255 + } + } + }