Merge pull request #461 from pathmapper/helper

Style layer which is dragged
This commit is contained in:
Orange Mug 2018-11-02 17:55:44 +00:00 committed by GitHub
commit b8ab802de5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -204,6 +204,7 @@ export default class LayerList extends React.Component {
render() { render() {
return <LayerListContainerSortable return <LayerListContainerSortable
{...this.props} {...this.props}
helperClass='sortableHelper'
onSortEnd={this.props.onMoveLayer.bind(this)} onSortEnd={this.props.onMoveLayer.bind(this)}
useDragHandle={true} useDragHandle={true}
/> />

View file

@ -234,3 +234,10 @@
min-width: 28px; min-width: 28px;
} }
} }
// Clone of the element which is sorted
.sortableHelper {
font-family: $font-family;
z-index: 9999;
border: none;
}