Skip to content

Commit 60f044f

Browse files
authored
Merge pull request #90 from CS3219-AY2425S1/titus/fix-code-editor-scroll
fix: enable scrolling in code editor
2 parents 609b491 + f7fd78d commit 60f044f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/frontend/src/components/CollaborativeEditor/CollaborativeEditor.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ const CollaborativeEditor = forwardRef(
391391
yCollab(ytext, provider.awareness, { undoManager }),
392392
keymap.of([indentWithTab]),
393393
codeChangeListener,
394+
EditorView.theme({
395+
"&": { height: "100%", overflow: "hidden" }, // Enable Scroll
396+
}),
394397
],
395398
});
396399

0 commit comments

Comments
 (0)