Skip to content

Commit

Permalink
Merge pull request #20150 from pellaeon/pr-droppable-hover-visual-cue
Browse files Browse the repository at this point in the history
Add visual cue when moving draggable item over droppable item,
  • Loading branch information
Vincent Petry committed May 30, 2016
2 parents 0e3a0e0 + 56241af commit 76c0bc2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions apps/files/css/files.css
Original file line number Diff line number Diff line change
Expand Up @@ -828,3 +828,8 @@ html.ie8 #controls .button.new {
.app-files .actions .button.new .icon {
margin-bottom: 2px;
}

.canDrop,
#filestable tbody tr.canDrop {
background-color: rgba(255, 255, 140, 1);
}
3 changes: 2 additions & 1 deletion apps/files/js/breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@
drop: this.onDrop,
over: this.onOver,
out: this.onOut,
tolerance: 'pointer'
tolerance: 'pointer',
hoverClass: 'canDrop'
});
}

Expand Down
2 changes: 1 addition & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@
}
// allow dropping on folders
if (this._folderDropOptions && mime === 'httpd/unix-directory') {
filenameTd.droppable(this._folderDropOptions);
tr.droppable(this._folderDropOptions);
}

if (options.hidden) {
Expand Down
4 changes: 3 additions & 1 deletion core/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,9 @@ span.ui-icon {float: left; margin: 3px 7px 30px 0;}
div.crumb {
float: left;
display: block;
background: url('../img/breadcrumb.svg') no-repeat right center;
background-image: url('../img/breadcrumb.svg');
background-repeat: no-repeat;
background-position: right center;
height: 44px;
background-size: auto 24px;
}
Expand Down

0 comments on commit 76c0bc2

Please sign in to comment.