diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromEntityList.js b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromEntityList.js index f116025c5808..c3474d17744a 100644 --- a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromEntityList.js +++ b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromEntityList.js @@ -8,7 +8,6 @@ import ListItemText from '@mui/material/ListItemText'; import { graphql } from 'react-relay'; import Skeleton from '@mui/material/Skeleton'; import * as R from 'ramda'; -import { truncate } from '../../../../utils/String'; import ItemIcon from '../../../../components/ItemIcon'; import { deleteNodeFromEdge } from '../../../../utils/store'; import { useFormatter } from '../../../../components/i18n'; @@ -333,13 +332,9 @@ const StixCoreRelationshipCreationFromEntityList = ({ .filter((edge) => edge.node.id !== entity.id) .map((edge) => edge.node); - const defaultDescription = (data) => truncate( - // eslint-disable-next-line no-nested-ternary - data.parent_types.includes('Stix-Cyber-Observable') - ? data.x_opencti_description - : data.description, - 120, - ); + const defaultDescription = (data) => (data.parent_types.includes('Stix-Cyber-Observable') + ? data.x_opencti_description + : data.description); return ( <> @@ -393,6 +388,14 @@ const StixCoreRelationshipCreationFromEntityList = ({ ); diff --git a/opencti-platform/opencti-front/src/private/components/observations/indicators/IndicatorCreation.tsx b/opencti-platform/opencti-front/src/private/components/observations/indicators/IndicatorCreation.tsx index d4655af8bf78..fd951e8561d6 100644 --- a/opencti-platform/opencti-front/src/private/components/observations/indicators/IndicatorCreation.tsx +++ b/opencti-platform/opencti-front/src/private/components/observations/indicators/IndicatorCreation.tsx @@ -46,7 +46,7 @@ const useStyles = makeStyles((theme) => ({ createButtonContextual: { position: 'fixed', bottom: 30, - right: 100, + right: 30, transition: theme.transitions.create('right', { easing: theme.transitions.easing.sharp, duration: theme.transitions.duration.enteringScreen, diff --git a/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservableAddIndicators.jsx b/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservableAddIndicators.jsx index c5caff6c0690..4b4e9c740780 100644 --- a/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservableAddIndicators.jsx +++ b/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservableAddIndicators.jsx @@ -100,7 +100,7 @@ class StixCyberObservableAddIndicators extends Component { size="large" color="primary" > - + {t('Add indicators')} @@ -134,8 +134,14 @@ class StixCyberObservableAddIndicators extends Component { }} /> +
+ +
- ); }