From f4ed37c1e13ce29c43ba4a2593467bcaef113728 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 28 Jan 2016 16:15:24 -0800 Subject: [PATCH] fix(drag-drop): Fix drop styles in account sidebar --- src/components/outline-view-item.jsx | 8 +++++--- static/components/outline-view.less | 7 +++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/outline-view-item.jsx b/src/components/outline-view-item.jsx index dfde0f824..1609f0c18 100644 --- a/src/components/outline-view-item.jsx +++ b/src/components/outline-view-item.jsx @@ -312,7 +312,6 @@ class OutlineViewItem extends Component { const containerClass = classnames({ 'item': true, 'selected': item.selected, - 'dropping': state.isDropping, 'editing': state.editing, [item.className]: item.className, }); @@ -348,10 +347,13 @@ class OutlineViewItem extends Component { render() { const item = this.props.item; - + const containerClasses = classnames({ + 'item-container': true, + 'dropping': this.state.isDropping, + }) return (
- + 0} diff --git a/static/components/outline-view.less b/static/components/outline-view.less index 5bc14755e..76839f331 100644 --- a/static/components/outline-view.less +++ b/static/components/outline-view.less @@ -57,6 +57,13 @@ .item-container { display:flex; + &.dropping { + background-color: lighten(@source-list-bg, 20%); + .item { + color: @source-list-active-color; + img.content-mask { background-color: @source-list-active-color; } + } + } } .item {