Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1fa8eee

Browse files
committed
Fix button and message to bottom
1 parentfb0dacf commit1fa8eee

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

‎frontend/src/OutputPrediction.js‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ export class OutputPrediction extends Component {
9494
opacity:state==="waiting"||state==="showingResult" ?1 :0,
9595
}}
9696
>
97-
<div>
98-
<strong>{message}</strong>
99-
<CorrectConfettiactive={confettiActive}/>
100-
</div>
10197
<RadioGroup
10298
choices={choices}
10399
onChange={value=>
@@ -110,8 +106,11 @@ export class OutputPrediction extends Component {
110106
wrongAnswers={wrongAnswers}
111107
submitted={state==="showingResult"||state==="fading"}
112108
/>
113-
<divstyle={{opacity:state==="waiting" ?1 :0}}>
109+
<divclassName="submit-prediction">
110+
<CorrectConfettiactive={confettiActive}/>
111+
<div><strong>{message}</strong></div>
114112
<button
113+
style={{opacity:state==="waiting" ?1 :0}}
115114
className="btn btn-primary"
116115
disabled={!userChoice}
117116
onClick={()=>{
@@ -140,7 +139,6 @@ export class OutputPrediction extends Component {
140139
Submit
141140
</button>
142141
</div>
143-
<CorrectConfettiactive={confettiActive}/>
144142
</div>
145143
}
146144
}

‎frontend/src/css/main.scss‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
height:0;
8585
transition:all1slinear;
8686
overflow:hidden;
87+
margin-bottom:6em;
8788

8889
&.show {
8990
opacity:1;
@@ -124,6 +125,26 @@
124125
background:#003866;
125126
}
126127
}
128+
129+
.submit-prediction {
130+
position:fixed;
131+
bottom:2vh;
132+
background:rgb(33,33,33);;
133+
padding:0.5em00.5em1em;
134+
border:2px#464f52solid;
135+
border-radius:4px;
136+
width:40vw;
137+
138+
button {
139+
margin-top:0.5em;
140+
141+
&:disabled {
142+
opacity:1;
143+
background:#1c58b1;
144+
border-color:#1c58b1;
145+
}
146+
}
147+
}
127148
}
128149

129150
// override react-popup

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp