@centreon/ui 23.10.88 → 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 +1 -1
- package/src/Dashboard/Item.tsx +6 -3
- package/src/Graph/SingleBar/ResponsiveSingleBar.tsx +3 -3
- package/src/components/Header/PageHeader/PageHeader.styles.ts +1 -1
- package/src/components/Layout/PageLayout/PageLayout.styles.ts +3 -4
- package/src/components/Header/Header.styles.ts +0 -0
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 && (
|
|
@@ -110,7 +110,7 @@ const ResponsiveSingleBar = ({
|
|
|
110
110
|
() =>
|
|
111
111
|
scaleLinear<number>({
|
|
112
112
|
domain: [0, adaptedMaxValue],
|
|
113
|
-
range: [0, width]
|
|
113
|
+
range: [0, width - 10 || 0]
|
|
114
114
|
}),
|
|
115
115
|
[width, adaptedMaxValue]
|
|
116
116
|
);
|
|
@@ -150,7 +150,7 @@ const ResponsiveSingleBar = ({
|
|
|
150
150
|
height={barHeights[size]}
|
|
151
151
|
rx={4}
|
|
152
152
|
style={springStyle}
|
|
153
|
-
x={
|
|
153
|
+
x={5}
|
|
154
154
|
y={groupMargin + (isSmall ? 0 : 2 * margins.top)}
|
|
155
155
|
/>
|
|
156
156
|
<Bar
|
|
@@ -160,7 +160,7 @@ const ResponsiveSingleBar = ({
|
|
|
160
160
|
ry={4}
|
|
161
161
|
stroke={alpha(theme.palette.text.primary, 0.3)}
|
|
162
162
|
width={maxBarWidth}
|
|
163
|
-
x={
|
|
163
|
+
x={5}
|
|
164
164
|
y={groupMargin + (isSmall ? 0 : 2 * margins.top)}
|
|
165
165
|
/>
|
|
166
166
|
{thresholds.enabled && (
|
|
@@ -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
|