From 2aacfb492dd626ebff701d73fe9b5d93b534ecb5 Mon Sep 17 00:00:00 2001 From: AG Date: Fri, 28 Nov 2025 22:38:56 +0200 Subject: [PATCH] AutoCapitalize new exercise name --- components/ExerciseModal.tsx | 1 + components/FilledInput.tsx | 4 +++- server/prisma/dev.db | Bin 61440 -> 61440 bytes 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/ExerciseModal.tsx b/components/ExerciseModal.tsx index ff32c26..e84df02 100644 --- a/components/ExerciseModal.tsx +++ b/components/ExerciseModal.tsx @@ -78,6 +78,7 @@ const ExerciseModal: React.FC = ({ isOpen, onClose, onSave, }} type="text" autoFocus + autocapitalize="words" /> {error && (

{error}

diff --git a/components/FilledInput.tsx b/components/FilledInput.tsx index 7445a26..aedf34c 100644 --- a/components/FilledInput.tsx +++ b/components/FilledInput.tsx @@ -9,9 +9,10 @@ interface FilledInputProps { autoFocus?: boolean; step?: string; inputMode?: "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal"; + autocapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters"; } -const FilledInput: React.FC = ({ label, value, onChange, type = "number", icon, autoFocus, step, inputMode }) => ( +const FilledInput: React.FC = ({ label, value, onChange, type = "number", icon, autoFocus, step, inputMode, autocapitalize }) => (
); diff --git a/server/prisma/dev.db b/server/prisma/dev.db index f7513f9655e37032bec03182f249dbf295520012..6a11c8e867d4b9f5766a65eef2ed2bae4b1064c0 100644 GIT binary patch delta 303 zcmZp8z})bFd4e>f)2PiUe8f_L7;NaAa6=V+$m6hb+FfcPq zNli90&^1m@OVl+nH89gnw6I9lHB3rMOEybMGc`?4n_Mri!WW*HlcO7)SrQ!L7~<)? zd17QS8=D}n2LrFiW{w0qUQG?=P)1@56Wm;wJ6VZYf#K+6_6ZJ*M<-6KH7Hl$3JneA zWME`q;7l_xGDxyCFw#vu}m}3O-iz~&^0tqO*KnRv9w4vOrD%KQDt)cR24?H l&2|%y@i8lKJ)F$Gz@CZgA<%a-ximm-A;z4|oU6aP008dwRWtwq delta 193 zcmZp8z})bFd4e>f#zYxsMvaXLOZ=GyI44eK4^Z4JD3Hmyd17QS8;byMA;V^_1Uue| z3$!;E=1x{(mS?n^%s#<^@z}(PwT9(o3S6O~p_~jrz-gG8mS~!4W}s`BXpo|7l9Fns zn`oGnsB2-EVq$2PXqIARU^+Q(qRQmNe3i|16OZvR%X4#0W?x{>#1jOxaweCC26HGQ MF{W(hT>aez0Bf>0$p8QV