@@ -197,33 +197,37 @@ class Editor extends React.Component {
197197 viewer = < div > </ div > ;
198198 }
199199 return < div
200- style = { { flex : 1 , display : 'flex' } }
200+ style = { { flex : 1 , display : 'flex' , width : '100%' , flexDirection : 'column' } }
201201 className = "Editor"
202202 onKeyDown = { this . handleKeyDown . bind ( this ) }
203203 >
204- < label className = "wrap-selector" ref = "wrapSelector" >
205- < input
206- type = "checkbox"
207- checked = { this . state . wrapping }
208- onChange = { evt => this . setState ( { wrapping : evt . target . checked } ) }
209- />
210- < span > Wrapping</ span >
211- </ label >
212- < select
213- className = "mode-selector"
214- value = { this . state . currentMode }
215- onChange = { this . updateMode . bind ( this ) }
216- >
217- < option value = "raw" disabled = { typeof this . state . modes . raw !== 'string' } > Raw</ option >
218- < option value = "json" disabled = { typeof this . state . modes . json !== 'string' } > JSON</ option >
219- < option value = "messagepack" disabled = { typeof this . state . modes . messagepack !== 'string' } > MessagePack</ option >
220- </ select >
221- < button
222- className = "nt-button"
223- disabled = { ! this . state . changed }
224- onClick = { this . save . bind ( this ) }
225- > Save Changes</ button >
226204 { viewer }
205+ < div
206+ className = "operation-pannel"
207+ >
208+ < label className = "wrap-selector" ref = "wrapSelector" >
209+ < input
210+ type = "checkbox"
211+ checked = { this . state . wrapping }
212+ onChange = { evt => this . setState ( { wrapping : evt . target . checked } ) }
213+ />
214+ < span > Wrapping</ span >
215+ </ label >
216+ < select
217+ className = "mode-selector"
218+ value = { this . state . currentMode }
219+ onChange = { this . updateMode . bind ( this ) }
220+ >
221+ < option value = "raw" disabled = { typeof this . state . modes . raw !== 'string' } > Raw</ option >
222+ < option value = "json" disabled = { typeof this . state . modes . json !== 'string' } > JSON</ option >
223+ < option value = "messagepack" disabled = { typeof this . state . modes . messagepack !== 'string' } > MessagePack</ option >
224+ </ select >
225+ < button
226+ className = "nt-button"
227+ disabled = { ! this . state . changed }
228+ onClick = { this . save . bind ( this ) }
229+ > Save Changes</ button >
230+ </ div >
227231 </ div > ;
228232 }
229233}
0 commit comments