From f7fd78d032c5db77d110dfc7ce90b43f529b9064 Mon Sep 17 00:00:00 2001 From: tituschewxj Date: Thu, 14 Nov 2024 07:45:07 +0800 Subject: [PATCH] fix: enable scrolling in code editor --- .../src/components/CollaborativeEditor/CollaborativeEditor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/frontend/src/components/CollaborativeEditor/CollaborativeEditor.tsx b/apps/frontend/src/components/CollaborativeEditor/CollaborativeEditor.tsx index b88531ebb3..be91e2238a 100644 --- a/apps/frontend/src/components/CollaborativeEditor/CollaborativeEditor.tsx +++ b/apps/frontend/src/components/CollaborativeEditor/CollaborativeEditor.tsx @@ -391,6 +391,9 @@ const CollaborativeEditor = forwardRef( yCollab(ytext, provider.awareness, { undoManager }), keymap.of([indentWithTab]), codeChangeListener, + EditorView.theme({ + "&": { height: "100%", overflow: "hidden" }, // Enable Scroll + }), ], });