File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const StyledHeaderRow = styled.tr`
25
25
`
26
26
const StyledHeaderCell = styled ( Box ) `
27
27
position: relative;
28
- padding: 12px ;
28
+ padding: 4px 8px ;
29
29
border-bottom: 1px solid ${ getColor ( "borderSecondary" ) } ;
30
30
&:not(:last-child) {
31
31
border-right: 1px solid ${ getColor ( "borderSecondary" ) } ;
@@ -133,7 +133,7 @@ Table.HeadCell = forwardRef(
133
133
sx = { {
134
134
textAlign : align ,
135
135
fontSize : "14px" ,
136
- height : "90px " ,
136
+ height : "60px " ,
137
137
position : "sticky" ,
138
138
top : 0 ,
139
139
...styles ,
@@ -271,7 +271,7 @@ Table.Cell = forwardRef(
271
271
< Box
272
272
as = "td"
273
273
onClick = { handleClick }
274
- padding = { [ 3 ] }
274
+ padding = { [ 1 , 2 ] }
275
275
ref = { ref }
276
276
sx = { {
277
277
textAlign : align ,
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const NetdataTable = ({
66
66
} ) => {
67
67
const [ isColumnDropdownVisible , setIsColumnDropdownVisible ] = useState ( false )
68
68
const [ columnVisibility , setColumnVisibility ] = useState ( initialColumnVisibility )
69
- const [ columnPinning , setColumnPinning ] = React . useState ( columnPinningOptions )
69
+ const [ columnPinning , setColumnPinning ] = useState ( columnPinningOptions )
70
70
71
71
const [ originalSelectedRows , setOriginalSelectedRow ] = useState ( [ ] )
72
72
const [ sorting , setSorting ] = useState ( sortBy )
@@ -103,8 +103,10 @@ const NetdataTable = ({
103
103
104
104
const makeActionsColumn = useMemo ( ( ) => makeRowActions ( { rowActions, testPrefix } ) , [ rowActions ] )
105
105
106
+ const hasBulkActions = enableColumnPinning || enableColumnVisibility || bulkActions
107
+
106
108
const renderBulkActions = ( ) =>
107
- bulkActions
109
+ hasBulkActions
108
110
? [
109
111
makeBulkActions ( {
110
112
bulkActions,
@@ -224,7 +226,7 @@ const NetdataTable = ({
224
226
return (
225
227
< SharedTableProvider >
226
228
< Flex height = "100%" overflow = "hidden" width = "100%" column >
227
- { onGlobalSearchChange || bulkActions ? (
229
+ { onGlobalSearchChange || hasBulkActions ? (
228
230
< GlobalControls
229
231
bulkActions = { renderBulkActions }
230
232
dataGa = { dataGa }
You can’t perform that action at this time.
0 commit comments