Alexander Rose 5 vuotta sitten
vanhempi
commit
4456ab2cd5

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

@@ -30,7 +30,7 @@ export class ActionMenu {
 const HideCmd: ActionMenu.Command = { type: 'hide' };
 
 export namespace ActionMenu {
-    export type Command = 
+    export type Command =
         | { type: 'toggle', items: Spec, header?: string, current?: Item, onSelect: (value: any) => void }
         | { type: 'hide' }
 
@@ -95,9 +95,9 @@ export namespace ActionMenu {
         render() {
             const props = this.props;
             const label = props.label || props.header;
-            return <button onClick={this.onClick} 
+            return <button onClick={this.onClick}
                 disabled={props.disabled} style={props.style} className={props.className}>
-                    {this.state.isSelected ? <b>{label}</b> : label}
+                {this.state.isSelected ? <b>{label}</b> : label}
             </button>;
         }
     }

+ 2 - 2
src/mol-plugin-ui/controls/parameters.tsx

@@ -173,7 +173,7 @@ export abstract class SimpleParam<P extends PD.Any> extends React.PureComponent<
 
     abstract renderControl(): JSX.Element;
     renderAddOn(): JSX.Element | null { return null; }
-    
+
     toggleHelp = () => this.setState({ isExpanded: !this.state.isExpanded });
 
     render() {
@@ -342,7 +342,7 @@ export class SelectControl extends SimpleParam<PD.Select<string | number>> {
         const items = this.items(this.props.param);
         const current = ActionMenu.findCurrent(items, this.props.value);
 
-        return <ActionMenu.Toggle menu={this.menu} disabled={this.props.isDisabled} 
+        return <ActionMenu.Toggle menu={this.menu} disabled={this.props.isDisabled}
             onSelect={this.onSelect} items={items as ActionMenu.Spec} label={current?.name || `[Invalid] ${this.props.value}`}
             current={current} />;
     }

+ 1 - 1
src/mol-theme/theme.ts

@@ -60,7 +60,7 @@ namespace Theme {
 //
 
 export interface ThemeProvider<T extends ColorTheme<P> | SizeTheme<P>, P extends PD.Params> {
-    readonly label: string    
+    readonly label: string
     readonly category: string
     readonly factory: (ctx: ThemeDataContext, props: PD.Values<P>) => T
     readonly getParams: (ctx: ThemeDataContext) => P