Skip to content

Commit f7fd78d

Browse files
committed
fix: enable scrolling in code editor
1 parent 609b491 commit f7fd78d

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)