浏览代码

ui, offset expanded color param

Alexander Rose 5 年之前
父节点
当前提交
f4b29dc7e0
共有 1 个文件被更改,包括 2 次插入2 次删除
  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>}
         </>;
     }
 }