From 1cecd04fbd9b6a6fa028a070274192f090aac237 Mon Sep 17 00:00:00 2001 From: novykh Date: Wed, 17 Apr 2024 11:05:12 +0300 Subject: [PATCH] v4.4.2 --- package.json | 2 +- src/components/table/body/header/cell.js | 20 +++++++++++-- src/components/table/body/header/index.js | 35 +++++++++++++---------- src/components/table/table.js | 2 ++ 4 files changed, 40 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index dec71639..55283053 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@netdata/netdata-ui", - "version": "4.4.1", + "version": "4.4.2", "description": "netdata UI kit", "main": "dist/index.js", "module": "dist/es6/index.js", diff --git a/src/components/table/body/header/cell.js b/src/components/table/body/header/cell.js index 9fded8d5..de843ce6 100644 --- a/src/components/table/body/header/cell.js +++ b/src/components/table/body/header/cell.js @@ -39,7 +39,15 @@ const rerenderSelector = state => ({ selecting: state.selectedRows, }) -const BodyHeaderCell = ({ header, table, testPrefix, coloredSortedColumn, index }) => { +const BodyHeaderCell = ({ + header, + table, + testPrefix, + coloredSortedColumn, + index, + children, + isSubheader, +}) => { useTableState(rerenderSelector) const { column } = header @@ -75,7 +83,7 @@ const BodyHeaderCell = ({ header, table, testPrefix, coloredSortedColumn, index background: "columnHighlight", backgroundOpacity: "0.2", })} - padding={[1, 2]} + padding={isSubheader ? [0] : [1, 2]} {...headStyles} column > @@ -90,7 +98,12 @@ const BodyHeaderCell = ({ header, table, testPrefix, coloredSortedColumn, index > {column.isPlaceholder ? null : ( -