Commit c593ade 1 parent fae989f commit c593ade Copy full SHA for c593ade
File tree 2 files changed +15
-5
lines changed
applications/operationalStudies/components/Scenario
styles/scss/applications/operationalStudies
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { Blocked , ChevronLeft , Pencil } from '@osrd-project/ui-icons' ;
2
2
import { useTranslation } from 'react-i18next' ;
3
3
4
- import InfraLoadingState from 'applications/operationalStudies/components/Scenario/InfraLoadingState' ;
5
4
import type { InfraWithState , ScenarioResponse } from 'common/api/osrdEditoastApi' ;
6
5
import { useModal } from 'common/BootstrapSNCF/ModalSNCF' ;
7
6
import AddAndEditScenarioModal from 'modules/scenario/components/AddOrEditScenarioModal' ;
@@ -68,7 +67,7 @@ const ScenarioDescription = ({
68
67
</ div >
69
68
70
69
< div className = "scenario-details-infra-name" >
71
- { t ( 'infrastructure' ) } : { infra && < InfraLoadingState infra = { infra } /> }
70
+ { t ( 'infrastructure' ) } : { infra && < span className = " infra-loaded" /> }
72
71
< span className = "scenario-infra-name" > { scenario . infra_name } </ span > | ID
73
72
{ scenario . infra_id }
74
73
</ div >
@@ -87,7 +86,7 @@ const ScenarioDescription = ({
87
86
< span className = "error-description" > { t ( 'errorMessages.softErrorInfra' ) } </ span >
88
87
</ div >
89
88
) ) }
90
- { infra && infra . state = == 'ERROR' && (
89
+ { infra && infra . state ! == 'ERROR' && (
91
90
< div className = "scenario-details-infra-error" >
92
91
< Blocked variant = "fill" />
93
92
< span className = "error-description" > { t ( 'errorMessages.hardErrorInfra' ) } </ span >
Original file line number Diff line number Diff line change 210
210
font-size : 1.6rem ;
211
211
}
212
212
}
213
+
214
+ .infra-loaded {
215
+ width : 0.5rem ;
216
+ height : 0.5rem ;
217
+ background-color : var (--success30 );
218
+ border-radius : 50% ;
219
+ margin-block : 0.3125rem 0.1875rem ;
220
+ }
221
+
213
222
.scenario-details-infra-error {
214
223
color : var (--error60 );
215
224
background-color : var (--error5 );
216
- margin : 1.3125rem -1.5 rem 0 -1.5rem ;
225
+ margin : 1.3125rem -1.4375 rem 0 -1.5rem ;
217
226
padding : 0.5625rem 3.5rem 0.6875rem 1.5rem ;
218
227
display : flex ;
228
+
229
+
219
230
.error-description {
220
231
margin-left : 1rem ;
221
232
font-size : 0.875rem ;
222
233
font-weight : 400 ;
223
- line-height : 20 px ;
234
+ line-height : 1.25 rem ;
224
235
}
225
236
}
226
237
You can’t perform that action at this time.
0 commit comments