Browse Source

StructureSourceControls tweak

David Sehnal 5 years ago
parent
commit
a29cc74304
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/mol-plugin-ui/structure/source.tsx

+ 3 - 2
src/mol-plugin-ui/structure/source.tsx

@@ -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>