Skip to content
Snippets Groups Projects
Commit 02dfc89b authored by David Sehnal's avatar David Sehnal
Browse files

mol-plugin: make tree control optionally scrollable

parent e5f7d309
No related branches found
No related tags found
No related merge requests found
......@@ -82,13 +82,13 @@ export class State extends PluginComponent {
render() {
const kind = this.plugin.state.behavior.kind.value;
return <>
return <div className='msp-scrollable-container'>
<div className='msp-btn-row-group msp-data-beh'>
<button className='msp-btn msp-btn-block msp-form-control' onClick={() => this.set('data')} style={{ fontWeight: kind === 'data' ? 'bold' : 'normal'}}>Data</button>
<button className='msp-btn msp-btn-block msp-form-control' onClick={() => this.set('behavior')} style={{ fontWeight: kind === 'behavior' ? 'bold' : 'normal'}}>Behavior</button>
</div>
<StateTree state={kind === 'data' ? this.plugin.state.dataState : this.plugin.state.behaviorState} />
</>
</div>
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment