Merge branch 'bx-696-startproject' of https://git.svs-tech.pro/ksenia_mikhailova/mns-mini-zabor into bx-696-startproject

This commit is contained in:
commit 17bca31722
2 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ button {
} }
&-item { &-item {
@apply flex flex-row gap-4 items-center justify-center flex-wrap; @apply flex flex-row gap-4 items-center justify-center flex-wrap xl:flex-nowrap;
label { label {
@apply w-full xl:w-auto; @apply w-full xl:w-auto;

View File

@ -81,7 +81,7 @@ const setPillarColor = (color: string) => {
} }
const increment = (field: keyof typeof form_state, value: number) => { const increment = (field: keyof typeof form_state, value: number) => {
if (form_state.hasOwnProperty(field)) { if (form_state.hasOwnProperty(field)) {
let v = form_state[field] + value * parametric[field].step ?? 1 let v = (form_state[field] + value * parametric[field].step ?? 1)
if (parametric.hasOwnProperty(field)) { if (parametric.hasOwnProperty(field)) {
if (v > parametric[field].max) { if (v > parametric[field].max) {
v = parametric[field].max v = parametric[field].max
@ -90,7 +90,7 @@ const increment = (field: keyof typeof form_state, value: number) => {
v = parametric[field].min v = parametric[field].min
} }
} }
form_state[field] = v form_state[field] = parseFloat(v.toFixed(2))
} }
} }
const autoSectionWidth = () => { const autoSectionWidth = () => {