Skip to content

Commit

Permalink
Fix minor css style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Singa-pirate committed Sep 27, 2024
1 parent 997e9ef commit 201a0f9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
12 changes: 10 additions & 2 deletions frontend/src/components/QuestionList/QuestionList.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ h1 {

.clickable::before {
top: 40%;
border-bottom: 6px solid #caff33;
border-bottom: 6px solid #456300;
}

.clickable::after {
top: 60%;
border-top: 6px solid #caff33;
border-top: 6px solid #456300;
}

.asc::before {
Expand Down Expand Up @@ -124,6 +124,14 @@ h1 {
background-color: #3a3a3a;
}

.questionaddicon {
margin-top: 20px !important;
}

.questionediticon {
color: #f1f1f1 !important;
}

.questiondeleteicon {
color: red !important;
}
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/components/QuestionList/QuestionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const QuestionList = (): ReactElement => {
<td className={styles.complexity}>{question.complexity}</td>
<td className={styles.actions}>
<IconButton onClick={() => openQuestionDialog(question)}>
<EditNote />
<EditNote className={styles.questionediticon} />
</IconButton>
<IconButton className={styles.questiondeleteicon} onClick={handleDelete(question)}>
<DeleteForever />
Expand All @@ -217,7 +217,12 @@ const QuestionList = (): ReactElement => {
))}
</tbody>
</table>
<Button color="primary" variant="contained" onClick={() => openQuestionDialog(null)}>
<Button
className={styles.questionaddicon}
color="primary"
variant="contained"
onClick={() => openQuestionDialog(null)}
>
Add question
</Button>
<QuestionDialog
Expand Down

0 comments on commit 201a0f9

Please sign in to comment.