From f54f3ec5287e1671316faba1f85eff335b947f8f Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 13 May 2025 17:34:02 -0700 Subject: [PATCH] continue conversation after auto apply and add warning to user setting --- gui/src/components/gui/NumberInput.tsx | 8 +++-- gui/src/components/gui/Switch.tsx | 19 +++++++++++- gui/src/pages/config/UserSettingsForm.tsx | 36 ++++++++++++++--------- gui/src/util/clientTools/editImpl.ts | 22 +++++++++----- 4 files changed, 60 insertions(+), 25 deletions(-) diff --git a/gui/src/components/gui/NumberInput.tsx b/gui/src/components/gui/NumberInput.tsx index 60693571e..fa622d5e5 100644 --- a/gui/src/components/gui/NumberInput.tsx +++ b/gui/src/components/gui/NumberInput.tsx @@ -34,7 +34,7 @@ const NumberInput: React.FC = ({ const handleInputChange = (e: React.ChangeEvent) => { const newInputValue = e.target.value; setInputValue(newInputValue); - + // Only update the actual value if it's a valid number const numValue = parseInt(newInputValue, 10); if (!isNaN(numValue)) { @@ -63,10 +63,12 @@ const NumberInput: React.FC = ({ WebkitAppearance: "none", MozAppearance: "none", }} + min={min} + max={max} />