mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-07-04 11:22:27 +00:00
fix(playground): adjust layout of the editor component for improved responsiveness
This commit is contained in:
parent
5a9a20dee6
commit
c629dc5612
@ -172,6 +172,9 @@ export default function PlaygroundPage() {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="flex flex-1 mt-0 m-3 gap-x-1">
|
||||||
|
<div className="w-1/3"></div>
|
||||||
|
<div className="w-1/3">
|
||||||
<Editor
|
<Editor
|
||||||
theme="vs-dark"
|
theme="vs-dark"
|
||||||
path={file.name}
|
path={file.name}
|
||||||
@ -195,12 +198,18 @@ export default function PlaygroundPage() {
|
|||||||
languageClientRef.current = languageClient;
|
languageClientRef.current = languageClient;
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error("Failed to connect to language server:", error);
|
console.error(
|
||||||
|
"Failed to connect to language server:",
|
||||||
|
error
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="w-1/3"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user