Browse Source

ui, offset expanded color param

Alexander Rose 5 years ago
parent
commit
f4b29dc7e0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/mol-plugin/ui/controls/color.tsx

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

@@ -86,7 +86,7 @@ export class CombinedColorControl extends React.PureComponent<ParamProps<PD.Colo
                     <button onClick={this.toggleExpanded} className='msp-combined-color-button' style={{ background: Color.toStyle(this.props.value) }}></button>
                 </div>
             </div>
-            {this.state.isExpanded && <>
+            {this.state.isExpanded && <div className='msp-control-offset'>
                 {this.swatch()}
                 <div className='msp-control-row'>
                     <div style={{ position: 'relative' }}>
@@ -97,7 +97,7 @@ export class CombinedColorControl extends React.PureComponent<ParamProps<PD.Colo
                         <div style={this.stripStyle()} />
                     </div>
                 </div>
-            </>}
+            </div>}
         </>;
     }
 }