[arvados] updated: 2.7.0-5777-gcb3411270b

git repository hosting git at public.arvados.org
Mon Jan 8 19:17:35 UTC 2024


Summary of changes:
 .../src/components/data-table/data-table.tsx       | 40 +++++++++++++++++-----
 1 file changed, 31 insertions(+), 9 deletions(-)

       via  cb3411270bc6254ffa8519f7c4bcee71b8002869 (commit)
      from  d6fb6f1ee88f743332da0c16775f080cba89a019 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit cb3411270bc6254ffa8519f7c4bcee71b8002869
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Mon Jan 8 14:17:26 2024 -0500

    21315: extended checkbox click area Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/services/workbench2/src/components/data-table/data-table.tsx b/services/workbench2/src/components/data-table/data-table.tsx
index de3e272d1e..4fd019cecf 100644
--- a/services/workbench2/src/components/data-table/data-table.tsx
+++ b/services/workbench2/src/components/data-table/data-table.tsx
@@ -63,6 +63,7 @@ type CssRules =
     | "noItemsInfo"
     | "checkBoxHead"
     | "checkBoxCell"
+    | "clickBox"
     | "checkBox"
     | "firstTableCell"
     | "tableCell"
@@ -94,10 +95,21 @@ const styles: StyleRulesCallback<CssRules> = (theme: Theme) => ({
     checkBoxHead: {
         padding: "0",
         display: "flex",
+        width: '2rem',
+        height: "1.5rem",
+        paddingLeft: '0.75rem',
+        marginRight: '0.2rem'
     },
     checkBoxCell: {
         padding: "0",
-        paddingLeft: "10px",
+    },
+    clickBox: {
+        width: '1.3rem',
+        height: "1.3rem",
+        paddingLeft: '0.2rem',
+        paddingTop: '0rem',
+        marginLeft: '0.5rem',
+        cursor: "pointer",
     },
     checkBox: {
         cursor: "pointer",
@@ -172,14 +184,24 @@ export const DataTable = withStyles(styles)(
             render: uuid => {
                 const { classes, checkedList } = this.props;
                 return (
-                    <input
-                        data-cy={`multiselect-checkbox-${uuid}`}
-                        type="checkbox"
-                        name={uuid}
-                        className={classes.checkBox}
-                        checked={checkedList && checkedList[uuid] ? checkedList[uuid] : false}
-                        onChange={() => this.handleSelectOne(uuid)}
-                        onDoubleClick={ev => ev.stopPropagation()}></input>
+                    <div
+                        className={classes.clickBox}
+                        onClick={(ev) => {
+                            ev.stopPropagation()
+                            this.handleSelectOne(uuid)
+                        }}
+                        onDoubleClick={(ev) => ev.stopPropagation()}
+                    >
+                        <input
+                            data-cy={`multiselect-checkbox-${uuid}`}
+                            type='checkbox'
+                            name={uuid}
+                            className={classes.checkBox}
+                            checked={checkedList && checkedList[uuid] ? checkedList[uuid] : false}
+                            onChange={() => this.handleSelectOne(uuid)}
+                            onDoubleClick={(ev) => ev.stopPropagation()}
+                        ></input>
+                    </div>
                 );
             },
         };

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list