From c966cfe17e939c33ccf555823451efce7cb8f71d Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 2 Jan 2019 20:53:42 -0600 Subject: [PATCH] Change active dragging color --- manage/draggable.js | 6 +++--- manage/manage.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manage/draggable.js b/manage/draggable.js index 55a25832..dc7beac4 100644 --- a/manage/draggable.js +++ b/manage/draggable.js @@ -1,4 +1,4 @@ -/* global UI $$ updateInjectionOrder */ +/* global $$ updateInjectionOrder */ 'use strict'; // Polyfill for mobile? - https://caniuse.com/#feat=dragndrop @@ -14,7 +14,7 @@ } document.addEventListener('dragstart', event => { - const el = event.target.closest('.entry'); + const el = event.target && event.target.closest('.entry'); if (el) { dragged = el; el.classList.add('dragging'); @@ -27,7 +27,7 @@ }); document.addEventListener('dragenter', event => { - const el = event.target.closest('.entry, .entry-header'); + const el = event.target && event.target.closest('.entry, .entry-header'); if (el && dragged) { // Insert after the target; keeps header at top el.after(dragged); diff --git a/manage/manage.css b/manage/manage.css index 275b9266..be1beb47 100644 --- a/manage/manage.css +++ b/manage/manage.css @@ -336,7 +336,7 @@ body.dragging .entry:not(.dragging) .entry-name:before { } .entry.dragging { - background: linear-gradient(to right, hsla(350, 50%, 30%, 0.2), hsla(180, 20%, 10%, 0.05) 50%, transparent); + background: linear-gradient(to right, hsla(255, 50%, 30%, 0.2), hsla(180, 20%, 10%, 0.05) 50%, transparent); } .entry.enabled .entry-name:hover .style-name {