From c5fd3b708af7c76a0739d48593ef9aa35a019f23 Mon Sep 17 00:00:00 2001 From: Zane <75694352+zanesq@users.noreply.github.com> Date: Wed, 6 Aug 2025 01:43:27 -0700 Subject: [PATCH] fix: recipe parameter form max height and not scrolling (#3879) --- .../src/components/ParameterInputModal.tsx | 138 ++++++++++-------- 1 file changed, 76 insertions(+), 62 deletions(-) diff --git a/ui/desktop/src/components/ParameterInputModal.tsx b/ui/desktop/src/components/ParameterInputModal.tsx index df219c58..c79c7fd5 100644 --- a/ui/desktop/src/components/ParameterInputModal.tsx +++ b/ui/desktop/src/components/ParameterInputModal.tsx @@ -115,68 +115,76 @@ const ParameterInputModal: React.FC = ({ ) : ( // Main parameter form -
-

Recipe Parameters

-
- {parameters.map((param) => ( -
- +
+
+

Recipe Parameters

+
+
+ + {parameters.map((param) => ( +
+ - {/* Render different input types */} - {param.input_type === 'select' && param.options ? ( - - ) : param.input_type === 'boolean' ? ( - - ) : ( - handleChange(param.key, e.target.value)} - className={`w-full p-3 border rounded-lg bg-bgSubtle text-textStandard focus:outline-none focus:ring-2 ${ - validationErrors[param.key] - ? 'border-red-500 focus:ring-red-500' - : 'border-borderSubtle focus:ring-borderProminent' - }`} - placeholder={param.default || `Enter value for ${param.key}...`} - /> - )} + {/* Render different input types */} + {param.input_type === 'select' && param.options ? ( + + ) : param.input_type === 'boolean' ? ( + + ) : ( + handleChange(param.key, e.target.value)} + className={`w-full p-3 border rounded-lg bg-bgSubtle text-textStandard focus:outline-none focus:ring-2 ${ + validationErrors[param.key] + ? 'border-red-500 focus:ring-red-500' + : 'border-borderSubtle focus:ring-borderProminent' + }`} + placeholder={param.default || `Enter value for ${param.key}...`} + /> + )} - {validationErrors[param.key] && ( -

{validationErrors[param.key]}

- )} -
- ))} -
+ {validationErrors[param.key] && ( +

{validationErrors[param.key]}

+ )} +
+ ))} + +
+
+
-
- +
)}