Fix editor styling and initialisation

This commit is contained in:
Jonathan Kim 2020-01-30 10:17:38 +00:00
parent fa954eda8f
commit 1d3e8dbc17
2 changed files with 2 additions and 2 deletions

View File

@ -97,6 +97,6 @@
// Render <GraphiQL /> into the body.
ReactDOM.render(
React.createElement(GraphiQL, options),
document.getElementsByClassName("editor")[0]
document.getElementById("editor")
);
})();

View File

@ -10,7 +10,7 @@ add "&raw" to the end of the URL within a browser.
<html>
<head>
<style>
html, body {
html, body, #editor {
height: 100%;
margin: 0;
overflow: hidden;