From f7f4f9154548318a0e4bf065226e8191d5cf4b42 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Mon, 26 Aug 2024 09:30:09 -0400 Subject: [PATCH] 21720: fixed tablehead styling and added stickyheader Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../src/components/data-table/data-table.tsx | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/services/workbench2/src/components/data-table/data-table.tsx b/services/workbench2/src/components/data-table/data-table.tsx index 32348364dd..3ada0ebc5f 100644 --- a/services/workbench2/src/components/data-table/data-table.tsx +++ b/services/workbench2/src/components/data-table/data-table.tsx @@ -73,6 +73,8 @@ type CssRules = | "checkBox" | "firstTableCell" | "tableCell" + | "firstTableHead" + | "tableHead" | "arrow" | "arrowButton" | "tableCellWorkflows"; @@ -99,10 +101,12 @@ const styles: CustomStyleRulesCallback = (theme: Theme) => ({ width: '2rem', height: "1.5rem", paddingLeft: '0.9rem', - marginRight: '0.5rem' + marginRight: '0.5rem', + backgroundColor: theme.palette.background.paper, }, checkBoxCell: { padding: "0", + backgroundColor: theme.palette.background.paper, }, clickBox: { display: 'flex', @@ -124,6 +128,18 @@ const styles: CustomStyleRulesCallback = (theme: Theme) => ({ firstTableCell: { paddingLeft: "5px", }, + firstTableHead: { + paddingLeft: "5px", + fontSize: "0.8125rem", + backgroundColor: theme.palette.background.paper, + }, + tableHead: { + wordWrap: "break-word", + paddingRight: "24px", + color: "#737373", + fontSize: "0.8125rem", + backgroundColor: theme.palette.background.paper, + }, tableCellWorkflows: { "&:nth-last-child(2)": { padding: "0px", @@ -322,7 +338,7 @@ export const DataTable = withStyles(styles)( return (
- +
{this.mapVisibleColumns(this.renderHeadCell)} @@ -391,7 +407,7 @@ export const DataTable = withStyles(styles)( ) : ( {renderHeader ? ( renderHeader() -- 2.30.2