21508: Split mounts and param table styles
authorStephen Smith <stephen@curii.com>
Sun, 7 Apr 2024 19:48:00 +0000 (15:48 -0400)
committerStephen Smith <stephen@curii.com>
Tue, 2 Apr 2024 00:48:00 +0000 (20:48 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

services/workbench2/src/views/process-panel/process-io-card.tsx

index fcc6d6493b1ea35b0c1008f22d817c5b25dfcc4b..7a39af6fe1fd845dd32e803ff952f9af51ae10a0 100644 (file)
@@ -76,8 +76,9 @@ type CssRules =
     | "avatar"
     | "iconHeader"
     | "tableWrapper"
-    | "tableRoot"
     | "paramValue"
+    | "paramTableRoot"
+    | "mountsTableRoot"
     | "keepLink"
     | "collectionLink"
     | "imagePreview"
@@ -127,7 +128,17 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         maxHeight: `calc(100% - ${theme.spacing.unit * 3}px)`,
         overflow: "auto",
     },
-    tableRoot: {
+    paramTableRoot: {
+        width: "100%",
+        "& thead th": {
+            verticalAlign: "bottom",
+            paddingBottom: "10px",
+        },
+        "& td, & th": {
+            paddingRight: "25px",
+        },
+    },
+    mountsTableRoot: {
         width: "100%",
         "& thead th": {
             verticalAlign: "bottom",
@@ -548,7 +559,7 @@ const ProcessIOPreview = memo(
         const showLabel = data.some((param: ProcessIOParameter) => param.label);
         return (
             <Table
-                className={classes.tableRoot}
+                className={classes.paramTableRoot}
                 aria-label="Process IO Preview"
             >
                 <TableHead>
@@ -601,7 +612,7 @@ const ProcessInputMounts = withStyles(styles)(
         auth: state.auth,
     }))(({ mounts, classes, auth }: ProcessInputMountsProps & { auth: AuthState }) => (
         <Table
-            className={classes.tableRoot}
+            className={classes.mountsTableRoot}
             aria-label="Process Input Mounts"
         >
             <TableHead>