Skip to content

Commit

Permalink
fix: enable scrolling in code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
tituschewxj committed Nov 13, 2024
1 parent 609b491 commit f7fd78d
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 f7fd78d

Please sign in to comment.