@centreon/ui 23.10.89 → 23.10.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/Dashboard/Item.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ReactElement
|
|
7
7
|
} from 'react';
|
|
8
8
|
|
|
9
|
-
import { isNil } from 'ramda';
|
|
9
|
+
import { isNil, prop } from 'ramda';
|
|
10
10
|
|
|
11
11
|
import { Card, useTheme } from '@mui/material';
|
|
12
12
|
|
|
@@ -59,10 +59,13 @@ const Item = forwardRef(
|
|
|
59
59
|
return useMemoComponent({
|
|
60
60
|
Component: (
|
|
61
61
|
<div
|
|
62
|
+
{...cardContainerListeners}
|
|
62
63
|
className={className}
|
|
63
64
|
ref={ref}
|
|
64
|
-
style={
|
|
65
|
-
|
|
65
|
+
style={{
|
|
66
|
+
...style,
|
|
67
|
+
width: `calc(${prop('width', style) || '0px'} - 12px)`
|
|
68
|
+
}}
|
|
66
69
|
>
|
|
67
70
|
<Card className={classes.widgetContainer}>
|
|
68
71
|
{header && (
|
|
@@ -26,7 +26,7 @@ const useStyles = makeStyles()((theme) => ({
|
|
|
26
26
|
borderBottom: `1px solid ${theme.palette.header.page.border}`,
|
|
27
27
|
display: 'flex',
|
|
28
28
|
gap: theme.spacing(4),
|
|
29
|
-
paddingBottom: theme.spacing(
|
|
29
|
+
paddingBottom: theme.spacing(1.5)
|
|
30
30
|
},
|
|
31
31
|
pageHeaderActions: {
|
|
32
32
|
'& > button': {
|
|
@@ -25,18 +25,17 @@ export const useStyles = makeStyles()((theme) => ({
|
|
|
25
25
|
display: 'grid',
|
|
26
26
|
gridTemplateRows: 'min-content',
|
|
27
27
|
overflow: 'hidden',
|
|
28
|
-
padding: theme.spacing(
|
|
28
|
+
padding: theme.spacing(1.5, 3, 5)
|
|
29
29
|
},
|
|
30
30
|
pageLayoutHeader: {
|
|
31
31
|
'[data-variant="fixed-header"] &': {
|
|
32
32
|
backgroundColor: theme.palette.layout.header.background,
|
|
33
33
|
borderBottom: `1px solid ${theme.palette.layout.header.border}`,
|
|
34
|
-
padding: theme.spacing(
|
|
34
|
+
padding: theme.spacing(3, 4, 2),
|
|
35
35
|
position: 'sticky',
|
|
36
36
|
top: 0,
|
|
37
37
|
zIndex: `calc(${theme.zIndex.mobileStepper} - 100)`
|
|
38
38
|
},
|
|
39
|
-
|
|
40
|
-
padding: theme.spacing(5, 3, 0)
|
|
39
|
+
padding: theme.spacing(3, 3, 0)
|
|
41
40
|
}
|
|
42
41
|
}));
|
|
File without changes
|