Skip to content

Commit 3884bc3

Browse files
committed
fix: issue #1083
1 parent c8be184 commit 3884bc3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/ChallengeEditor/ChallengeEditor.module.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
span {
2929
color: $tc-red;
3030
}
31+
32+
.errorMessage {
33+
text-align: left;
34+
margin-left: 60px;
35+
font-size: 25px;
36+
color: $tc-red;
37+
}
3138
}
3239

3340
.textRequired {
@@ -232,7 +239,6 @@
232239
}
233240

234241
.error {
235-
text-align: right;
236242
padding-right: 40px;
237243
padding-bottom: 20px;
238244
color: $tc-red
@@ -332,6 +338,7 @@
332338
line-height: 36px;
333339
margin-bottom: 30px;
334340
margin-top: 0;
341+
335342
}
336343

337344
span {

src/components/ChallengeEditor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ class ChallengeEditor extends Component {
11811181
if (failedToLoad) {
11821182
return (
11831183
<div className={styles.wrapper}>
1184-
<div className={styles.title}>{errorMessage || 'There was an error loading the challenge'}</div>
1184+
<div className={styles.title}>{errorMessage ? <div className={styles.errorMessage}>{`Error : ${errorMessage}`}</div> : 'There was an error loading the challenge'}</div>
11851185
<br />
11861186
<div className={styles.container}>
11871187
<div className={styles.formContainer}>

0 commit comments

Comments
 (0)