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

StructureSourceControls tweak

parent 95c43d08
No related branches found
No related tags found
No related merge requests found
......@@ -248,10 +248,11 @@ export class StructureSourceControls extends CollapsableControls<{}, StructureSo
renderControls() {
const disabled = this.state.isBusy || this.isEmpty;
const actions = this.actions(this.plugin.managers.structure.hierarchy.selection);
const label = this.label;
return <>
<div className='msp-btn-row-group' style={{ marginTop: '1px' }}>
<button className='msp-btn msp-form-control msp-flex-item' onClick={this.toggleHierarchy} style={{ overflow: 'hidden', textOverflow: 'ellipsis' }} disabled={disabled}>
{this.label}
<button className='msp-btn msp-form-control msp-flex-item' onClick={this.toggleHierarchy} style={{ overflow: 'hidden', textOverflow: 'ellipsis' }} disabled={disabled} title={label}>
{label}
</button>
{actions.length > 0 && <IconButton customClass='msp-form-control' style={{ flex: '0 0 32px' }} onClick={this.toggleActions} icon='dot-3' title='Actions' toggleState={this.state.show === 'actions'} disabled={disabled} />}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment