Skip to content

Commit bf880c5

Browse files
committed
minor fixes
1 parent 18eeec5 commit bf880c5

File tree

5 files changed

+30
-15
lines changed

5 files changed

+30
-15
lines changed

packages/graphql-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"classnames": "^2.2.5",
116116
"codemirror": "^5.27.4",
117117
"cuid": "^1.3.8",
118-
"graphcool-styles": "^0.2.5",
118+
"graphcool-styles": "0.2.4",
119119
"graphcool-tmp-ui": "^0.0.11",
120120
"graphiql": "^0.11.2",
121121
"graphql": "^0.10.5",

packages/graphql-playground/src/components/Playground/Results.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ export default class Results extends React.Component<Props, {}> {
2121
>
2222
<style jsx={true}>{`
2323
.result-window {
24-
@p: .bgDarkBlue, .nosb;
25-
overflow: auto;
24+
@p: .bgDarkBlue, .nosb, .relative;
2625
}
2726
2827
.result-window.disableResize :global(.CodeMirror-gutters) {
@@ -47,6 +46,15 @@ export default class Results extends React.Component<Props, {}> {
4746
@p: .bgDarkBlue, .white50, .f12;
4847
padding-left: 15px;
4948
}
49+
50+
.result-viewer-wrapper {
51+
position: absolute;
52+
top: 0;
53+
left: 0;
54+
right: 0;
55+
bottom: 0;
56+
overflow: auto;
57+
}
5058
`}</style>
5159
{this.props.responses.map(response => (
5260
<div key={response.resultID || String(response.time)}>
@@ -58,10 +66,12 @@ export default class Results extends React.Component<Props, {}> {
5866
</div>
5967
</div>
6068
)}
61-
<ResultViewer
62-
value={response.date}
63-
hideGutters={this.props.hideGutters}
64-
/>
69+
<div className="result-viewer-wrapper">
70+
<ResultViewer
71+
value={response.date}
72+
hideGutters={this.props.hideGutters}
73+
/>
74+
</div>
6575
</div>
6676
))}
6777
</div>

packages/graphql-playground/src/components/Playground/TabBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const TabBar = withTheme<Props>(
7171
7272
.tabs {
7373
@p: .mt16, .ml0, .flex, .itemsCenter, .z0, .overflowAuto;
74-
margin-right: 240px;
74+
margin-right: 60px;
7575
}
7676
7777
.tabs.isApp {

packages/graphql-playground/src/middlewareIndex.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ const folderName = `airbnb`
5151
const exampleYmlConfig = `\
5252
schemaPath: schema.graphql
5353
projects:
54+
privateCluster:
55+
extensions:
56+
endpoints:
57+
default:
58+
url: 'https://tim.graph.cool/system'
5459
gateway:
5560
extensions:
5661
endpoints:

packages/graphql-playground/yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3030,23 +3030,23 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6,
30303030
version "1.0.1"
30313031
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
30323032

3033-
graphcool-styles@^0.1.31:
3034-
version "0.1.31"
3035-
resolved "https://registry.yarnpkg.com/graphcool-styles/-/graphcool-styles-0.1.31.tgz#efb04329a0e5d2788023e45e43925a85664e83dd"
3033+
graphcool-styles@0.2.4:
3034+
version "0.2.4"
3035+
resolved "https://registry.yarnpkg.com/graphcool-styles/-/graphcool-styles-0.2.4.tgz#c04aa8a440280e910e4c9cfa1ef97052d1060198"
30363036
dependencies:
30373037
html-webpack-plugin "^2.24.1"
30383038
interactive "^0.1.9"
3039+
isomorphic-fetch "^2.2.1"
30393040
object-assign "^4.1.0"
30403041
react-dom "^15.3.2"
30413042
webpack-dev-server "^1.16.2"
30423043

3043-
graphcool-styles@^0.2.5:
3044-
version "0.2.5"
3045-
resolved "https://registry.yarnpkg.com/graphcool-styles/-/graphcool-styles-0.2.5.tgz#4cc151afb39e29b46f31f44a9b531d970d9d4cf8"
3044+
graphcool-styles@^0.1.31:
3045+
version "0.1.31"
3046+
resolved "https://registry.yarnpkg.com/graphcool-styles/-/graphcool-styles-0.1.31.tgz#efb04329a0e5d2788023e45e43925a85664e83dd"
30463047
dependencies:
30473048
html-webpack-plugin "^2.24.1"
30483049
interactive "^0.1.9"
3049-
isomorphic-fetch "^2.2.1"
30503050
object-assign "^4.1.0"
30513051
react-dom "^15.3.2"
30523052
webpack-dev-server "^1.16.2"

0 commit comments

Comments
 (0)