@centreon/ui 24.4.49 → 24.4.50

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "24.4.49",
3
+ "version": "24.4.50",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
 
3
- import { equals, isNil, pick } from 'ramda';
3
+ import { equals, isEmpty, isNil, pick } from 'ramda';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { makeStyles } from 'tss-react/mui';
6
6
 
@@ -200,7 +200,13 @@ const AutocompleteField = React.forwardRef(
200
200
  ),
201
201
  style: {
202
202
  background: 'transparent',
203
- paddingRight: theme.spacing(5)
203
+ minWidth: 0,
204
+ padding: theme.spacing(
205
+ 0.75,
206
+ isEmpty(placeholder) ? 0 : 5,
207
+ 0.75,
208
+ 0.75
209
+ )
204
210
  }
205
211
  }}
206
212
  autoFocus={autoFocus}
@@ -28,6 +28,7 @@ const useStyles = makeStyles<{
28
28
  left: props?.left ?? 0,
29
29
  margin: 0,
30
30
  maxWidth: 'unset',
31
+ paddingBottom: theme.spacing(8),
31
32
  position: 'absolute',
32
33
  right: props?.right ?? 0,
33
34
  top: props?.top ?? 0,
@@ -50,14 +51,18 @@ const useStyles = makeStyles<{
50
51
  },
51
52
  modalActions: {
52
53
  '&[data-fixed="true"]': {
53
- position: 'fixed'
54
+ background: theme.palette.background.paper,
55
+ position: 'fixed',
56
+ width: '100%'
54
57
  },
55
- bottom: theme.spacing(2),
58
+ bottom: 0,
56
59
  display: 'flex',
57
60
  flexDirection: 'row',
58
61
  gap: theme.spacing(2),
59
62
  justifyContent: 'flex-end',
60
- right: theme.spacing(2.5)
63
+ padding: theme.spacing(1, 2.5, 2.5, 0),
64
+ right: 0,
65
+ zIndex: theme.zIndex.modal
61
66
  },
62
67
  modalBody: {
63
68
  '& > p': {