Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit de5cdf3

Browse files
committed
Fix size of GraphiQL to fill screen
1 parent be8c317 commit de5cdf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/renderGraphiQL.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ add "&raw" to the end of the URL within a browser.
3939
<!DOCTYPE html>
4040
<html>
4141
<head>
42+
<style>
43+
html, body {
44+
height: 100%;
45+
margin: 0;
46+
overflow: hidden;
47+
width: 100%;
48+
}
49+
</style>
4250
<link href="//cdn.jsdelivr.net/graphiql/${GRAPHIQL_VERSION}/graphiql.css" rel="stylesheet" />
4351
<script src="//cdn.jsdelivr.net/fetch/0.9.0/fetch.min.js"></script>
4452
<script src="//cdn.jsdelivr.net/react/0.14.7/react.min.js"></script>

0 commit comments

Comments
 (0)