Skip to content

Commit 680b5a5

Browse files
committed
Minor style change
1 parent 7947f6e commit 680b5a5

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

peerprep/app/globals.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
html,
66
body {
7-
@apply overflow-hidden;
8-
@apply bg-black;
9-
height: 100%;
7+
@apply overflow-hidden;
8+
background-color: #121212;
9+
height: 100%;
1010
}
1111

1212
body,
1313
p,
1414
h1,
1515
h2 {
16-
@apply text-text-2;
16+
@apply text-text-2;
1717
}

peerprep/app/questions/[question]/question.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ function QuestionBlock({ question }: Props) {
8787
}}
8888
/>
8989
}
90-
<br />
9190
</div>
9291
<div className={styles.editor_container}>
9392
<CollabEditor question={question} />

peerprep/app/questions/new/page.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
2-
import { useState, ChangeEvent, MouseEvent, FormEvent } from "react";
3-
import { QuestionBody, Difficulty, QuestionFullBody } from "@/api/structs";
2+
import { ChangeEvent, FormEvent, MouseEvent, useState } from "react";
3+
import { Difficulty, QuestionBody, QuestionFullBody } from "@/api/structs";
44
import style from "@/style/form.module.css";
55
import FormTextInput from "@/components/shared/form/FormTextInput";
66
import RadioButtonGroup from "@/components/shared/form/RadioButtonGroup";
@@ -45,10 +45,7 @@ function NewQuestion({}: Props) {
4545
});
4646
setTopic("");
4747
};
48-
const handleTopicDel = (
49-
e: MouseEvent<HTMLParagraphElement>,
50-
idx: number
51-
) => {
48+
const handleTopicDel = (e: MouseEvent<HTMLParagraphElement>, idx: number) => {
5249
if (loading) return;
5350
const values = [...formData.topicTags];
5451
values.splice(idx, 1);
@@ -59,7 +56,7 @@ function NewQuestion({}: Props) {
5956
};
6057

6158
const handleFormTextInput = (
62-
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
59+
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,
6360
) =>
6461
setFormData({
6562
...formData,

peerprep/components/questionpage/CollabEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function CollabEditor({ question }: Props) {
6666

6767
return (
6868
<>
69-
<div className="flex space-x-4 items-center p-4">
69+
<div className="flex space-x-4 items-center p-4 m-4">
7070
<div className="flex flex-col">
7171
<label className="font-semibold mb-1">Font Size</label>
7272
<input

peerprep/style/layout.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
justify-content: space-between;
55
align-items: center;
66
padding: 10px 10px 10px 10px;
7+
border-radius: 4px;
78
}
89

910
.main_container {

peerprep/style/question.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
gap: 15px;
3737
width: 100%;
3838
padding: 0px 5px;
39+
margin-bottom: 5px;
3940
}
4041

4142
.label_shadow {
@@ -84,6 +85,7 @@
8485
color: beige;
8586
padding: 10px 6px;
8687
resize: none;
88+
overflow-y: auto;
8789
}
8890

8991
.editorHTML code {

0 commit comments

Comments
 (0)