1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

made sortable item helper visible by setting proper zindex

This commit is contained in:
Matus Benko
2017-09-08 00:41:20 +02:00
parent 9141b1a641
commit c34dd462b6
2 changed files with 9 additions and 4 deletions

View File

@@ -102,3 +102,6 @@ body[data-theme="dark"]
background #B1D7FE
::selection
background #B1D7FE
.sortableItemHelper
z-index 1005

View File

@@ -51,8 +51,6 @@ FolderList.propTypes = {
})
}
const StyledFolderList = CSSModules(FolderList, styles)
const SortableFolderList = SortableContainer(StyledFolderList)
class SortableFolderListComponent extends React.Component {
constructor (props) {
@@ -65,10 +63,14 @@ class SortableFolderListComponent extends React.Component {
}
render() {
const StyledFolderList = CSSModules(FolderList, this.props.styles)
const SortableFolderList = SortableContainer(StyledFolderList)
return (
<SortableFolderList onSortEnd={this.onSortEnd} userDragHandle={true} {...this.props} />
<SortableFolderList helperClass='sortableItemHelper' onSortEnd={this.onSortEnd} userDragHandle={true} {...this.props} />
)
}
}
export default SortableFolderListComponent
export default CSSModules(SortableFolderListComponent, styles)