File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed
src/components/interactive-code-block Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export default class MiniGraphiQL extends Component<
78
78
79
79
render ( ) {
80
80
const editor = (
81
- < div className = "flex flex-col" >
81
+ < div className = "flex flex-1 flex- col" >
82
82
< CodeBlockLabel
83
83
text = "Operation"
84
84
className = "border-b border-neu-200 bg-[--cm-background] dark:border-neu-50"
@@ -101,7 +101,7 @@ export default class MiniGraphiQL extends Component<
101
101
< div className = "flex flex-col border-neu-200 dark:border-neu-50" >
102
102
< CodeBlockLabel
103
103
text = "Variables"
104
- className = "border-b border-neu-200 bg-[--cm-background] dark:border-neu-50"
104
+ className = "border-y border-neu-200 bg-[--cm-background] dark:border-neu-50"
105
105
/>
106
106
< VariableEditor
107
107
value = { this . state . variables }
@@ -177,11 +177,14 @@ export default class MiniGraphiQL extends Component<
177
177
}
178
178
179
179
_handleEditQuery ( value : string ) {
180
- this . setState ( { query : value } )
181
- void this . _runQuery ( { manual : false } )
180
+ this . setState ( { query : value } , ( ) => {
181
+ void this . _runQuery ( { manual : false } )
182
+ } )
182
183
}
183
184
184
185
_handleEditVariables ( value : string ) {
185
- this . setState ( { variables : value } )
186
+ this . setState ( { variables : value } , ( ) => {
187
+ void this . _runQuery ( { manual : false } )
188
+ } )
186
189
}
187
190
}
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export class QueryEditor extends Component<QueryEditorProps> {
140
140
render ( ) {
141
141
return (
142
142
< div
143
- className = "query-editor flex flex-col [&>:last-child]:basis-full"
143
+ className = "query-editor flex h-full flex-col [&>:last-child]:basis-full"
144
144
ref = { e => {
145
145
this . domNode = e
146
146
} }
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export class ResultViewer extends Component<ResultViewerProps> {
71
71
render ( ) {
72
72
return (
73
73
< div
74
- className = "result-window"
74
+ className = "result-window h-full "
75
75
ref = { e => {
76
76
this . domNode = e
77
77
} }
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export class VariableEditor extends Component<VariableEditorProps> {
103
103
render ( ) {
104
104
return (
105
105
< div
106
- className = "variable-editor"
106
+ className = "variable-editor h-full "
107
107
ref = { e => {
108
108
this . domNode = e
109
109
} }
You can’t perform that action at this time.
0 commit comments