@@ -104,9 +104,7 @@ class GraphDocs extends React.Component<
104
104
// Schema is null when it explicitly does not exist, typically due to
105
105
// an error during introspection.
106
106
emptySchema = (
107
- < div className = "error-container" >
108
- { 'No Schema Available' }
109
- </ div >
107
+ < div className = "error-container" > { 'No Schema Available' } </ div >
110
108
)
111
109
}
112
110
@@ -144,8 +142,8 @@ class GraphDocs extends React.Component<
144
142
background: rgba(0, 0, 0, 0.06);
145
143
}
146
144
.graph-docs {
147
- @p: .absolute, .right0, . h100;
148
- margin- right: -1px ;
145
+ @p: .absolute, .h100;
146
+ right: -2px ;
149
147
}
150
148
.graph-docs.open {
151
149
z-index: 2000;
@@ -214,19 +212,17 @@ class GraphDocs extends React.Component<
214
212
ref = { this . setDocExplorerRef }
215
213
>
216
214
< div className = "doc-explorer-container" >
217
- { emptySchema &&
218
- < ColumnDoc >
219
- { emptySchema }
220
- </ ColumnDoc > }
221
- { schema &&
215
+ { emptySchema && < ColumnDoc > { emptySchema } </ ColumnDoc > }
216
+ { schema && (
222
217
< RootColumn
223
218
schema = { schema }
224
219
width = { this . state . widthMap . root || columnWidth - 1 }
225
220
searchValue = { this . state . searchValue }
226
221
setWidth = { this . setRootWidth }
227
222
handleSearch = { this . handleSearch }
228
- /> }
229
- { navStack . map ( ( stack , index ) =>
223
+ />
224
+ ) }
225
+ { navStack . map ( ( stack , index ) => (
230
226
< ColumnDoc
231
227
key = { index }
232
228
width = { this . state . widthMap [ stack . field . path ] || columnWidth }
@@ -237,8 +233,8 @@ class GraphDocs extends React.Component<
237
233
level = { index + 1 }
238
234
onSetWidth = { this . setWidthMap ( stack . field . path ) }
239
235
/>
240
- </ ColumnDoc > ,
241
- ) }
236
+ </ ColumnDoc >
237
+ ) ) }
242
238
</ div >
243
239
</ div >
244
240
</ div >
0 commit comments