fix ticket 6
All checks were successful
publish-main / release-image (push) Successful in 6m8s

This commit is contained in:
kuwsh1n 2024-04-26 10:56:01 +03:00
parent 949a1b7ed5
commit 749cd56dcf
2 changed files with 20 additions and 4 deletions

View File

@ -79,6 +79,17 @@
margin-top: 4px;
font-size: 12px;
font-family: "Montserrat", sans-serif;
i {
display: none;
margin-left: 5px;
cursor: pointer;
&:hover {
color: rgb(230, 80, 80);
}
}
&:hover i {
display: inline;
}
}
}
&__text {

View File

@ -65,19 +65,24 @@ const AnswerModal = ({
<span className={classes.myModal__dialog__content__body__answerOptions__title}>Варианты ответа</span>
<div className={classes.myModal__dialog__content__body__answerOptions__list}>
{optionAnswer.map((item, i) =>
<span key={i} className={classes.myModal__dialog__content__body__answerOptions__list__answer}>{item.id}) {item.text}</span>
<span key={i} className={classes.myModal__dialog__content__body__answerOptions__list__answer}>
{item.id}) {item.text}
<i class="fa-solid fa-xmark" onClick={() => setOptionAnswer([...optionAnswer].filter(answer => answer.id !== item.id))}></i>
</span>
)}
</div>
<input
type="text"
className={classes.myModal__dialog__content__body__answerOptions__text}
value={currentOptionAnswer}
onChange={event => setCurrentOptionAnswer(event.target.value)}/>
onChange={event => setCurrentOptionAnswer(event.target.value)}
/>
<MyButton
text={'Добавить'}
click={addOptionAnswer}
backgroundColor={'rgb(200, 200, 200)'}
otherStyle={{padding: '1% 2%'}}/>
class={"main__white"}
otherStyle={{padding: '1% 2%'}}
/>
</div> : <div></div>}
<div className={classes.myModal__dialog__content__body__mandatory}>
<span className={classes.myModal__dialog__content__body__mandatory__title}>Обязательный вопрос</span>