From 03d930ad4e5cd9d2a7db243f691e90d4d6fc883a Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Fri, 30 Sep 2022 10:41:55 -0400 Subject: [PATCH] 16073: Add min width to process io preview label column Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/views/process-panel/process-io-card.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/views/process-panel/process-io-card.tsx b/src/views/process-panel/process-io-card.tsx index 7284159e..84a9ca6d 100644 --- a/src/views/process-panel/process-io-card.tsx +++ b/src/views/process-panel/process-io-card.tsx @@ -82,7 +82,8 @@ type CssRules = | "halfRow" | "symmetricTabs" | "imagePlaceholder" - | "rowWithPreview"; + | "rowWithPreview" + | "labelColumn"; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ card: { @@ -183,7 +184,10 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, rowWithPreview: { verticalAlign: 'bottom', - } + }, + labelColumn: { + minWidth: '120px', + }, }); export enum ProcessIOCardType { @@ -328,7 +332,7 @@ const ProcessIOPreview = withStyles(styles)( Name - {showLabel && Label} + {showLabel && Label} Value Collection @@ -390,11 +394,6 @@ const ProcessValuePreview = withStyles(styles)( ) -const handleClick = (url) => { - window.open(url, '_blank'); -} - - interface ProcessIORawDataProps { data: ProcessIOParameter[]; } @@ -591,7 +590,7 @@ const KeepUrlPath = withStyles(styles)(({auth, res, pdh, classes}: KeepUrlProps const keepUrlPathNav = getKeepNavUrl(auth, res, pdh); return keepUrlPath && keepUrlPathNav ? - {keepUrlPath} : + {keepUrlPath} : // Show No value for root collection io that lacks path part ; }); -- 2.30.2