Skip to content

Commit

Permalink
Merge pull request #90 from CS3219-AY2425S1/titus/fix-code-editor-scroll
Browse files Browse the repository at this point in the history
fix: enable scrolling in code editor
  • Loading branch information
bensohh authored Nov 14, 2024
2 parents 609b491 + f7fd78d commit 60f044f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ const CollaborativeEditor = forwardRef(
yCollab(ytext, provider.awareness, { undoManager }),
keymap.of([indentWithTab]),
codeChangeListener,
EditorView.theme({
"&": { height: "100%", overflow: "hidden" }, // Enable Scroll
}),
],
});

Expand Down

0 comments on commit 60f044f

Please sign in to comment.