change QuestionList, style QuestionItem
This commit is contained in:
parent
b3132da636
commit
065917b4d2
4 changed files with 43 additions and 10 deletions
|
|
@ -9,11 +9,32 @@
|
|||
border-radius: 14px;
|
||||
}
|
||||
|
||||
.questionCard:last-child{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.questionContainer{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.questionTextarea{
|
||||
border: none;
|
||||
outline: none;
|
||||
resize: none;
|
||||
margin-bottom: 5px;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.buttonQuestion{
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: #ffffff;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.textQuestion{
|
||||
margin-top: 0;
|
||||
width: 100%;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 35px;
|
||||
text-align: start;
|
||||
}
|
||||
|
|
@ -83,8 +83,8 @@ const QuestionItem: React.FC<QuestionItemProps> = ({indexQuestion, initialTextQu
|
|||
placeholder={initialTextQuestion}
|
||||
/>
|
||||
) : (
|
||||
<button className={styles.textQuestion} onClick={handleQuestionClick}>
|
||||
<h2>{textQuestion || initialTextQuestion}</h2>
|
||||
<button className={styles.buttonQuestion} onClick={handleQuestionClick}>
|
||||
<h2 className={styles.textQuestion}>{textQuestion || initialTextQuestion}</h2>
|
||||
</button>
|
||||
)}
|
||||
{answerOption.map((answerText, index) => (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue