diff --git a/views/devices/put/aspect_ratio_tolerance_input.templ b/views/devices/put/aspect_ratio_tolerance_input.templ index 59ea880..d120259 100644 --- a/views/devices/put/aspect_ratio_tolerance_input.templ +++ b/views/devices/put/aspect_ratio_tolerance_input.templ @@ -21,7 +21,7 @@ templ AspectRatioToleranceInput(data AspectRatioToleranceData) { type="number" min="0" @change="$el.setCustomValidity(''); this.error = false" - class="input input-bordered" + class="input input-bordered w-full" :class="{'text-error': error, 'input-error': error}" value={ fmt.Sprintf("%.2f", data.Value) } placeholder="0.20" diff --git a/views/devices/put/max_image_resolution_input.templ b/views/devices/put/max_image_resolution_input.templ index 8bbfd75..57244a4 100644 --- a/views/devices/put/max_image_resolution_input.templ +++ b/views/devices/put/max_image_resolution_input.templ @@ -27,9 +27,8 @@ templ MaxImageResolutionXInput(data ResolutionData) { min="0" @change="$el.setCustomValidity(''); this.error = false" class={ utils.CXX( - "input input-bordered", true, - "text-error", data.Error != "", - "input-error", data.Error != "", + "input input-bordered w-full", true, + "text-error input-error", data.Error != "", ) } :class="{'text-error': error, 'input-error': error}" value={ strconv.Itoa(data.Value) } @@ -74,9 +73,8 @@ templ MaxImageResolutionYInput(data ResolutionData) { min="0" @change="$el.setCustomValidity(''); this.error = false" class={ utils.CXX( - "input input-bordered", true, - "text-error", data.Error != "", - "input-error", data.Error != "", + "input input-bordered w-full", true, + "text-error input-error", data.Error != "", ) } :class="{'text-error': error, 'input-error': error}" value={ strconv.Itoa(data.Value) } diff --git a/views/devices/put/min_image_resolution_input.templ b/views/devices/put/min_image_resolution_input.templ index 15bbbc6..1c97013 100644 --- a/views/devices/put/min_image_resolution_input.templ +++ b/views/devices/put/min_image_resolution_input.templ @@ -27,7 +27,7 @@ templ MinImageResolutionXInput(data ResolutionData) { min="0" @change="$el.setCustomValidity(''); this.error = false" class={ utils.CXX( - "input input-bordered", true, + "input input-bordered w-full", true, "text-error", data.Error != "", "input-error", data.Error != "", ) } @@ -75,7 +75,7 @@ templ MinImageResolutionYInput(data ResolutionData) { min="0" @change="$el.setCustomValidity(''); this.error = false" class={ utils.CXX( - "input input-bordered", true, + "input input-bordered w-full", true, "text-error", data.Error != "", "input-error", data.Error != "", ) } diff --git a/views/devices/put/name_input.templ b/views/devices/put/name_input.templ index b2487c1..33189cd 100644 --- a/views/devices/put/name_input.templ +++ b/views/devices/put/name_input.templ @@ -10,7 +10,7 @@ type NameInputData struct { } templ NameInput(data NameInputData) { -