Skip to content
Snippets Groups Projects
Commit 09711fe5 authored by Iurii Lebedev's avatar Iurii Lebedev :speech_balloon:
Browse files

style in quiz-list fix

parent 67614082
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ export const GlobalQuizzesList = observer(() => { ...@@ -49,7 +49,7 @@ export const GlobalQuizzesList = observer(() => {
}, 2000); }, 2000);
} }
}}> }}>
<span className='row justify-content-between'><p className='font-weight-bold'>{quiz.name} </p><p className='font-weight-light'> by {quiz.authorName}</p></span> <span className='row justify-content-between'><span className='font-weight-bold mr-2'>{quiz.name} </span><span className='font-weight-light'> by {quiz.authorName}</span></span>
{(() => { {(() => {
if (quiz.points !== -1) { if (quiz.points !== -1) {
return ( return (
......
...@@ -148,12 +148,12 @@ export const QuestionForm = observer((props) => { ...@@ -148,12 +148,12 @@ export const QuestionForm = observer((props) => {
<Col> <Col>
<ul id='quiz-questions'> <ul id='quiz-questions'>
{answers.map((answer, index) => {answers.map((answer, index) =>
<li key={index}> <li key={index} className="row align-items-center">
<input type="text" value={answers[index].text} <input type="text" value={answers[index].text}
onChange={event => handleChange(index, event.target)} onChange={event => handleChange(index, event.target)}
className='question-elem mt-1' className='question-elem mt-1 mr-2'
placeholder=" Answer option"/> placeholder=" Answer option"/>
<p> is it right answer?</p> is it right answer?
{selectedType === SINGLE_RIGHT ? {selectedType === SINGLE_RIGHT ?
<input type="radio" className='question-elem ml-3' <input type="radio" className='question-elem ml-3'
value={answers[index].text} onChange={event => { value={answers[index].text} onChange={event => {
...@@ -168,7 +168,7 @@ export const QuestionForm = observer((props) => { ...@@ -168,7 +168,7 @@ export const QuestionForm = observer((props) => {
handleChange(index, event.target) handleChange(index, event.target)
}}/> }}/>
} }
<i className='delete-option' onClick={() => deleteAnswer(index)}> </i> <i className='delete-option ml-2' onClick={() => deleteAnswer(index)}> </i>
</li> </li>
)} )}
</ul> </ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment