Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit c97b5ed

Browse files
committed
Resize monaco-editor in debug dashboard when the page resizes or gets opened for the first time (#318)
1 parent 89a17c5 commit c97b5ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/nodecg-io-debug/dashboard/debug-helper.ts

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const debugMonacoEditor = monaco.editor.create(instanceMonaco, {
8282
model: model,
8383
theme: "vs-dark",
8484
});
85+
window.addEventListener("resize", () => debugMonacoEditor.layout());
8586

8687
setHandler("#json_send", "onclick", () => {
8788
const jsonString = debugMonacoEditor.getValue();

0 commit comments

Comments
 (0)