fix image size step
This commit is contained in:
parent
75dde1dd75
commit
93a2f67e43
|
@ -1,6 +1,7 @@
|
||||||
import { doesExist } from '@apextoaster/js-utils';
|
import { doesExist } from '@apextoaster/js-utils';
|
||||||
import { Stack, TextField } from '@mui/material';
|
import { Stack } from '@mui/material';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
import { NumericField } from './NumericField';
|
import { NumericField } from './NumericField';
|
||||||
|
|
||||||
export interface ImageParams {
|
export interface ImageParams {
|
||||||
|
@ -54,7 +55,7 @@ export function ImageControl(props: ImageControlProps) {
|
||||||
<Stack direction="row" spacing={4}>
|
<Stack direction="row" spacing={4}>
|
||||||
<NumericField
|
<NumericField
|
||||||
label="Width"
|
label="Width"
|
||||||
min={1}
|
min={8}
|
||||||
max={512}
|
max={512}
|
||||||
step={8}
|
step={8}
|
||||||
value={params.width}
|
value={params.width}
|
||||||
|
@ -69,7 +70,7 @@ export function ImageControl(props: ImageControlProps) {
|
||||||
/>
|
/>
|
||||||
<NumericField
|
<NumericField
|
||||||
label="Height"
|
label="Height"
|
||||||
min={1}
|
min={8}
|
||||||
max={512}
|
max={512}
|
||||||
step={8}
|
step={8}
|
||||||
value={params.height}
|
value={params.height}
|
||||||
|
|
Loading…
Reference in New Issue