math.round font size
This commit is contained in:
@@ -118,7 +118,7 @@ const TextInstruction: FC = () => {
|
|||||||
<Input
|
<Input
|
||||||
type="number"
|
type="number"
|
||||||
label="سایز"
|
label="سایز"
|
||||||
value={formState.fontSize}
|
value={Math.round(formState.fontSize)}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const numValue = parseInt(e.target.value) || 0;
|
const numValue = parseInt(e.target.value) || 0;
|
||||||
handleChange("fontSize", numValue);
|
handleChange("fontSize", numValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user