From 4a1dcd7be586c39cf4bc1649990e41f6e79c0f4a Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 15 Sep 2022 11:16:21 -0400 Subject: [PATCH] 16073: Add ellipses to truncated io param docstrings Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/views/process-panel/process-panel-root.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/process-panel/process-panel-root.tsx b/src/views/process-panel/process-panel-root.tsx index 3efcb335..4508f5ac 100644 --- a/src/views/process-panel/process-panel-root.tsx +++ b/src/views/process-panel/process-panel-root.tsx @@ -172,7 +172,7 @@ const formatInputData = (inputs: CommandInputParameter[], auth: AuthState): Proc return { id: getIOParamId(input), label: input.label || "", - doc: doc.substring(0,50), + doc: doc.substring(0,50) + (doc.length > 50 ? "..." : ""), value: getIOParamDisplayValue(auth, input) }; }); @@ -184,7 +184,7 @@ const formatOutputData = (definitions: CommandOutputParameter[], values: any, pd return { id: getIOParamId(output), label: output.label || "", - doc: doc.substring(0,50), + doc: doc.substring(0,50) + (doc.length > 50 ? "..." : ""), value: getIOParamDisplayValue(auth, Object.assign(output, { value: values[getIOParamId(output)] || [] }), pdh) }; }); -- 2.39.5