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> </div>
{!this.props.readOnly && this.state.selectionAt && ( {!this.props.readOnly && this.state.selectionAt && (
<SelectionEditor <SelectionEditor
position={this.state.selectionAt} position={{ top: -4, right: 6 }}
onChange={this.onSelectionChange} onChange={this.onSelectionChange}
onClose={this.closeSelectionEditor} onClose={this.closeSelectionEditor}
/> />

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

Loading…
Cancel
Save