move selection editor palette

main
Mike Fix 5 years ago committed by repo-ranger[bot]
parent 44218de715
commit 7da5054207

@ -320,7 +320,7 @@ class Carbon extends React.PureComponent {
</div>
{!this.props.readOnly && this.state.selectionAt && (
<SelectionEditor
position={this.state.selectionAt}
position={{ top: -4, right: 6 }}
onChange={this.onSelectionChange}
onClose={this.closeSelectionEditor}
/>

@ -68,11 +68,10 @@ function SelectionEditor({ position, onChange, onClose }) {
return (
<Popout
hidden={false}
pointerLeft="62px"
pointerRight="16px"
style={{
zIndex: 100,
top: position.top,
left: position.left
...position
}}
>
<div className="colorizer">

Loading…
Cancel
Save