From 40a8cddaa02d69c85854de9ea93dcd2fb4b90211 Mon Sep 17 00:00:00 2001 From: ValentinBouzinFiligran <162980256+ValentinBouzinFiligran@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:29:43 +0100 Subject: [PATCH] [frontend] In create entity form (on the fly), spacing of the first field is not correct (#9567) --- .../analyses/groupings/GroupingCreation.tsx | 2 +- .../MalwareAnalysisCreation.tsx | 26 ++++++++-------- .../analyses/reports/ReportCreation.tsx | 4 +-- .../arsenal/channels/ChannelCreation.tsx | 22 ++++---------- .../arsenal/malwares/MalwareCreation.tsx | 2 +- .../components/arsenal/tools/ToolCreation.tsx | 2 +- .../vulnerabilities/VulnerabilityCreation.tsx | 30 ++++++------------- .../case_incidents/CaseIncidentCreation.tsx | 2 +- .../cases/case_rfis/CaseRfiCreation.tsx | 2 +- .../cases/case_rfts/CaseRftCreation.tsx | 2 +- .../StixDomainObjectCreation.jsx | 4 ++- .../entities/events/EventCreation.tsx | 6 ++-- .../individuals/IndividualCreation.tsx | 2 +- .../entities/sectors/SectorCreation.tsx | 2 +- .../entities/systems/SystemCreation.tsx | 2 +- .../events/incidents/IncidentCreation.tsx | 4 +-- .../observed_data/ObservedDataCreation.tsx | 8 ++--- .../AdministrativeAreaCreation.tsx | 6 ++-- .../locations/cities/CityCreation.tsx | 6 ++-- .../locations/countries/CountryCreation.tsx | 12 ++------ .../locations/positions/PositionCreation.tsx | 10 +++---- .../locations/regions/RegionCreation.tsx | 12 ++------ .../indicators/IndicatorCreation.tsx | 10 +++---- .../InfrastructureCreation.tsx | 8 ++--- .../attack_patterns/AttackPatternCreation.tsx | 4 +-- .../CourseOfActionCreation.tsx | 2 +- .../data_components/DataComponentCreation.tsx | 22 ++++---------- .../data_sources/DataSourceCreation.tsx | 22 ++++---------- .../threats/campaigns/CampaignCreation.tsx | 2 +- .../intrusion_sets/IntrusionSetCreation.tsx | 2 +- .../ThreatActorGroupCreation.tsx | 6 ++-- 31 files changed, 94 insertions(+), 152 deletions(-) diff --git a/opencti-platform/opencti-front/src/private/components/analyses/groupings/GroupingCreation.tsx b/opencti-platform/opencti-front/src/private/components/analyses/groupings/GroupingCreation.tsx index 26830e6596a9..df627f826b40 100644 --- a/opencti-platform/opencti-front/src/private/components/analyses/groupings/GroupingCreation.tsx +++ b/opencti-platform/opencti-front/src/private/components/analyses/groupings/GroupingCreation.tsx @@ -216,7 +216,7 @@ export const GroupingCreationForm: FunctionComponent = ({ fullWidth={true} multiline={true} rows="4" - style={{ marginTop: 20 }} + style={fieldSpacingContainerStyle} askAi={true} /> @@ -271,26 +271,26 @@ MalwareAnalysisFormProps @@ -301,7 +301,7 @@ MalwareAnalysisFormProps required={mandatoryAttributes.includes('configuration_version')} label={t_i18n('Configuration version')} fullWidth - style={{ marginTop: 20 }} + style={fieldSpacingContainerStyle} /> @@ -319,7 +319,7 @@ MalwareAnalysisFormProps textFieldProps={{ label: t_i18n('Analysis ended'), fullWidth: true, - style: { marginTop: 20 }, + style: { ...fieldSpacingContainerStyle }, required: mandatoryAttributes.includes('analysis_ended'), }} /> @@ -329,7 +329,7 @@ MalwareAnalysisFormProps required={mandatoryAttributes.includes('analysis_engine_version')} label={t_i18n('Analysis engine version')} fullWidth - style={{ marginTop: 20 }} + style={fieldSpacingContainerStyle} />