From cd6f4b948df2146be5cf84d7daadf1ca877e4c64 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Fri, 27 Mar 2026 22:51:43 +0000 Subject: [PATCH] fix: increase number inputs range and generalize tab names in instructions --- src/components/mii/instructions.tsx | 30 +++++++++---------- .../submit-form/mii-editor/number-inputs.tsx | 20 ++++++------- src/lib/schemas.ts | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/mii/instructions.tsx b/src/components/mii/instructions.tsx index 284f0bf..5a3fd95 100644 --- a/src/components/mii/instructions.tsx +++ b/src/components/mii/instructions.tsx @@ -150,13 +150,13 @@ export default function MiiInstructions({ instructions }: Props) { {eyebrows &&
} {eyes && (
-
-
-
-
-
-
-
+
+
+
+
+
+
+
)} {nose &&
} @@ -182,16 +182,16 @@ export default function MiiInstructions({ instructions }: Props) { )} {other && (
-
-
-
-
+
+
+
+
{other.moustache && other.moustache.isFlipped && {other.moustache.isFlipped ? "Yes" : "No"}}
-
-
-
-
+
+
+
+
)} diff --git a/src/components/submit-form/mii-editor/number-inputs.tsx b/src/components/submit-form/mii-editor/number-inputs.tsx index 2e84c31..18515dd 100644 --- a/src/components/submit-form/mii-editor/number-inputs.tsx +++ b/src/components/submit-form/mii-editor/number-inputs.tsx @@ -23,8 +23,8 @@ export default function NumberInputs({ target }: Props) { { const value = Number(e.target.value); @@ -44,8 +44,8 @@ export default function NumberInputs({ target }: Props) { { const value = Number(e.target.value); @@ -65,8 +65,8 @@ export default function NumberInputs({ target }: Props) { { const value = Number(e.target.value); @@ -86,8 +86,8 @@ export default function NumberInputs({ target }: Props) { { const value = Number(e.target.value); @@ -107,8 +107,8 @@ export default function NumberInputs({ target }: Props) { { const value = Number(e.target.value); diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 2cf25b1..bf92f36 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -84,7 +84,7 @@ export const userNameSchema = z }); const colorSchema = z.number().int().min(0).max(152).optional(); -const geometrySchema = z.number().int().min(-10).max(10).optional(); +const geometrySchema = z.number().int().min(-15).max(15).optional(); export const switchMiiInstructionsSchema = z .object({