diff --git a/ui/litellm-dashboard/src/components/policies/pipeline_flow_builder.tsx b/ui/litellm-dashboard/src/components/policies/pipeline_flow_builder.tsx index 1a99acca777..34a3951d6c2 100644 --- a/ui/litellm-dashboard/src/components/policies/pipeline_flow_builder.tsx +++ b/ui/litellm-dashboard/src/components/policies/pipeline_flow_builder.tsx @@ -181,14 +181,17 @@ const StepCard: React.FC = ({ style={{ border: "1px solid #e5e7eb", borderRadius: 10, - padding: "16px 20px", backgroundColor: "#fff", maxWidth: 720, width: "100%", + overflow: "hidden", }} > - {/* Header row: icon + GUARDRAIL label ... Step N + menu */} -
+ {/* Header row */} +
= ({
- {/* Guardrail name / selector */} -
+ {/* Guardrail selector */} +
+ onChange({ on_pass: value as PipelineStep["on_pass"] })} - options={ACTION_OPTIONS} - /> -
-
- - Fail - → - onChange({ on_pass: value as PipelineStep["on_pass"] })} + options={ACTION_OPTIONS} + /> + {step.on_pass === "modify_response" && ( +
+ + onChange({ modify_response_message: e.target.value || null })} + /> +
+ )}
- {/* Custom response input */} - {(step.on_pass === "modify_response" || step.on_fail === "modify_response") && ( -
- onChange({ modify_response_message: e.target.value || null })} - /> + {/* ON FAIL section */} +
+
+ + ON FAIL
- )} + +