mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
made sortable item helper visible by setting proper zindex
This commit is contained in:
@@ -102,3 +102,6 @@ body[data-theme="dark"]
|
|||||||
background #B1D7FE
|
background #B1D7FE
|
||||||
::selection
|
::selection
|
||||||
background #B1D7FE
|
background #B1D7FE
|
||||||
|
|
||||||
|
.sortableItemHelper
|
||||||
|
z-index 1005
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ FolderList.propTypes = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const StyledFolderList = CSSModules(FolderList, styles)
|
|
||||||
const SortableFolderList = SortableContainer(StyledFolderList)
|
|
||||||
|
|
||||||
class SortableFolderListComponent extends React.Component {
|
class SortableFolderListComponent extends React.Component {
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
@@ -65,10 +63,14 @@ class SortableFolderListComponent extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
|
const StyledFolderList = CSSModules(FolderList, this.props.styles)
|
||||||
|
const SortableFolderList = SortableContainer(StyledFolderList)
|
||||||
|
|
||||||
return (
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user