This commit is contained in:
Kseninia Mikhaylova 2024-06-10 17:14:37 +03:00
parent 6f0699daaf
commit 9c6d2e94e6
2 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ button {
}
&-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 {
@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) => {
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 (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
}
}
form_state[field] = v
form_state[field] = parseFloat(v.toFixed(2))
}
}
const autoSectionWidth = () => {