Skip to content

Commit 4c7fcc9

Browse files
committed
fixup! front: redesign top left of the scenario page
1 parent f6c7721 commit 4c7fcc9

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

front/src/applications/operationalStudies/components/Scenario/InfraLoadingState.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function InfraLoadingState({ infra }: Props) {
2929
title={infra.state}
3030
>
3131
{infra.state && infra.state === 'CACHED' ? (
32-
<span></span>
32+
<span className="infra-loaded" />
3333
) : (
3434
<>
3535
<span className="infra-loader"></span>

front/src/applications/operationalStudies/components/Scenario/ScenarioDescription.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ const ScenarioDescription = ({
7070

7171
<div className="scenario-details-infra-name">
7272
{t('infrastructure')} :&nbsp;
73-
{infra && infra.state === 'CACHED' && <span className="infra-loaded" />}
74-
{infra && infra.state !== 'CACHED' && <InfraLoadingState infra={infra} />}
73+
{infra && <InfraLoadingState infra={infra} />}
7574
&nbsp;
7675
<span className="scenario-infra-name">{scenario.infra_name}</span>&nbsp;| ID
7776
{scenario.infra_id}

front/src/styles/scss/_variables.scss

+3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ $colors: (
5050
'grey60': #5c5955,
5151
'grey90': #1f1b17,
5252
'grey80': #312e2b,
53+
'info5': #e6f7ff,
54+
'info30': #70c1e5,
5355
'info60': #216482,
56+
'info80': #053348,
5457
'primary50': #256afa,
5558
'primary60': #1844ef,
5659
'primary80': #1f0f96,

front/src/styles/scss/applications/operationalStudies/_scenario.scss

-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@
226226
padding: 0.5625rem 3.5rem 0.6875rem 1.5rem;
227227
display: flex;
228228

229-
230229
.error-description {
231230
margin-left: 1rem;
232231
font-size: 0.875rem;

front/src/styles/scss/common/components/_infraLoadingState.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.infra-loading-state {
2-
font-size: 0.9rem;
2+
font-size: 0.75rem;
33
display: flex;
44
align-items: center;
55
margin-right: 0.5rem;
@@ -8,7 +8,7 @@
88
color: var(--success30);
99
}
1010
&.loading {
11-
color: var(--orange);
11+
color: var(--info60);
1212
}
1313

1414
.infra-loader:first-child {
@@ -27,17 +27,17 @@
2727

2828
@keyframes dot-flashing {
2929
0% {
30-
color: var(--orange);
30+
color: var(--info60);
3131
}
3232
50%,
3333
100% {
34-
color: #f8e3d8;
34+
color: var(--info30);
3535
}
3636
}
3737

3838
.steps {
3939
font-weight: 500;
40-
margin-left: 0.5rem;
40+
margin-left: 0.25rem;
4141
margin-top: 0.1rem;
4242
}
4343
}

0 commit comments

Comments
 (0)