Browse Source

ActionMenu tweak

David Sehnal 5 years ago
parent
commit
90e3a3f0c7

+ 1 - 1
src/mol-plugin-ui/controls/action-menu.tsx

@@ -145,7 +145,7 @@ const Action: React.FC<{ item: ActionMenu.Item, onSelect: ActionMenu.OnSelect, c
     const isCurrent = current === item;
     return <div className='msp-control-row'>
         <button onClick={() => onSelect(item)}>
-            {item.icon && <Icon name={item.icon} />}
+            {item.icon && <Icon name={item.icon} style={{ fontSize: '80%', marginRight: '6px' }} />}
             {isCurrent ? <b>{item.label}</b> : item.label}
         </button>
     </div>;

+ 1 - 1
src/mol-plugin-ui/structure/components.tsx

@@ -79,7 +79,7 @@ class StructureComponentEntry extends PurePluginUIComponent<{ component: Structu
     
     get removeActions(): ActionMenu.Items {
         const ret = [
-            ActionMenu.Item('Remove Component', 'remove', this.remove(this.ref))
+            ActionMenu.Item('Remove Selection', 'remove', this.remove(this.ref))
         ];
         for (const repr of this.props.component.representations) {
             ret.push(ActionMenu.Item(`Remove ${repr.cell.obj?.label}`, 'remove', this.remove(repr.cell.transform.ref)))