Skip to content

Commit fb89725

Browse files
committed
fix: heights of submission editor
1 parent 36d7b07 commit fb89725

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

apps/frontend/src/app/question/[id]/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default function QuestionPage() {
7979
basicSetup,
8080
languageConf.of(javascript()),
8181
EditorView.theme({
82-
"&": { height: "100%", overflow: "hidden" }, // Enable scroll
82+
"&": { height: "100%", overflow: "hidden" }, // Enable Scroll
8383
}),
8484
],
8585
});
@@ -241,6 +241,7 @@ export default function QuestionPage() {
241241
pageSize: paginationParams.limit,
242242
onChange: onPageJump,
243243
}}
244+
scroll={{ y: 200 }}
244245
/>
245246
</div>
246247
</div>
@@ -279,7 +280,7 @@ export default function QuestionPage() {
279280
<div
280281
style={{
281282
margin: "10px",
282-
height: "40vh",
283+
height: "35vh",
283284
}}
284285
>
285286
<div

apps/frontend/src/app/question/[id]/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
}
2222

2323
.history-row {
24-
height: 40%;
24+
height: 45%;
2525
padding: 1rem 0.25rem 0.25rem;
2626
}
2727

2828
.code-row {
29-
height: 60%;
29+
height: 55%;
3030
padding: 1rem 0.25rem 0.25rem;
3131
}
3232

0 commit comments

Comments
 (0)