From ae1ed98d5b8e03025902969f31260ed1f84b6fed Mon Sep 17 00:00:00 2001 From: ggfevans Date: Wed, 25 Feb 2026 01:31:29 -0800 Subject: [PATCH] fix: add step attribute to custom device height input The number input for device height had min=0.5 but no step attribute, causing the browser to only accept values in the sequence 0.5, 1.5, 2.5... Adding step="0.5" allows both whole numbers and half-U values. Fixes #1307 Co-Authored-By: Claude Opus 4.6 --- src/lib/components/AddDeviceForm.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/AddDeviceForm.svelte b/src/lib/components/AddDeviceForm.svelte index 7aa52b3b..d556c88a 100644 --- a/src/lib/components/AddDeviceForm.svelte +++ b/src/lib/components/AddDeviceForm.svelte @@ -218,6 +218,7 @@ bind:value={height} min={MIN_DEVICE_HEIGHT} max={MAX_DEVICE_HEIGHT} + step="0.5" class:error={heightError} /> {#if heightError}