Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
made sortable item helper visible by setting proper zindex
  • Loading branch information
PrimaMateria committed Sep 7, 2017
commit c34dd462b66a86d5a0735a0786655576c9dff54f
3 changes: 3 additions & 0 deletions browser/main/global.styl
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ body[data-theme="dark"]
background #B1D7FE
::selection
background #B1D7FE

.sortableItemHelper
z-index 1005
10 changes: 6 additions & 4 deletions browser/main/modals/PreferencesModal/FolderList.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ FolderList.propTypes = {
})
}

const StyledFolderList = CSSModules(FolderList, styles)
const SortableFolderList = SortableContainer(StyledFolderList)

class SortableFolderListComponent extends React.Component {
constructor (props) {
Expand All @@ -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)