Skip to content
Snippets Groups Projects
Commit e1e99e2b authored by Sandro Weber's avatar Sandro Weber
Browse files

more layouting

parent 9a61af13
No related branches found
No related tags found
No related merge requests found
.tf-editor-container {
margin: 10px;
}
.tf-editor-header { .tf-editor-header {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
...@@ -41,4 +37,8 @@ ...@@ -41,4 +37,8 @@
.tf-editor-text-unsaved { .tf-editor-text-unsaved {
color: orange; color: orange;
}
.tf-editor-codemirror-container {
overflow: scroll;
} }
\ No newline at end of file
...@@ -67,7 +67,6 @@ export default class TransceiverFunctionEditor extends React.Component { ...@@ -67,7 +67,6 @@ export default class TransceiverFunctionEditor extends React.Component {
console.info(['this.hasUnsavedChanges', this.hasUnsavedChanges]); console.info(['this.hasUnsavedChanges', this.hasUnsavedChanges]);
} }
// setFile(directoryPath, filename, data, byname = true, contentType = 'text/plain')
async saveTF() { async saveTF() {
let response = await ExperimentStorageService.instance.setFile( let response = await ExperimentStorageService.instance.setFile(
this.props.experimentId, this.state.selectedFilename, this.state.code); this.props.experimentId, this.state.selectedFilename, this.state.code);
...@@ -106,15 +105,15 @@ export default class TransceiverFunctionEditor extends React.Component { ...@@ -106,15 +105,15 @@ export default class TransceiverFunctionEditor extends React.Component {
'tf-editor-text-unsaved' : 'tf-editor-text-saved'}> 'tf-editor-text-unsaved' : 'tf-editor-text-saved'}>
{this.state.textChanges} {this.state.textChanges}
</div> </div>
{/*<div className='tf-editor-ui-save'>
</div>*/}
</div> </div>
</div> </div>
<CodeMirror <div className='tf-editor-codemirror-container'>
value={this.state.code} <CodeMirror
maxHeight="100%" value={this.state.code}
onChange={(change, viewUpdate) => this.onChangeCodemirror(change, viewUpdate)}/> onChange={(change, viewUpdate) => this.onChangeCodemirror(change, viewUpdate)}/>
</div>
{this.state.showDialogUnsavedChanges ? {this.state.showDialogUnsavedChanges ?
<div> <div>
<Modal show={this.state.showDialogUnsavedChanges} <Modal show={this.state.showDialogUnsavedChanges}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment