From ff07572fd441bff6ae5347feb936aabefe1ae527 Mon Sep 17 00:00:00 2001 From: maver Date: Sat, 3 Jun 2023 21:59:51 +0200 Subject: [PATCH] Fix dropspot highlight not appearing on hover --- public/scripts/DraggableList.js | 4 ++-- public/scripts/PromptManager.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/DraggableList.js b/public/scripts/DraggableList.js index 7bf184a9a..acd97aa94 100644 --- a/public/scripts/DraggableList.js +++ b/public/scripts/DraggableList.js @@ -84,7 +84,7 @@ DraggableListModule.prototype.getClosestDraggable = function (element) { DraggableListModule.prototype.getClosestDroppable = function (element) { return element !== this.list && element.closest('#' + this.list.id) - ? element.closest('.dropAllowed') + ? element.closest('.droppable') : null; } @@ -124,4 +124,4 @@ DraggablePromptListModule.prototype = Object.create(DraggableListModule.prototyp DraggablePromptListModule.prototype.constructor = DraggablePromptListModule; -export {DraggablePromptListModule}; \ No newline at end of file +export {DraggablePromptListModule}; diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index da79463f2..a38ff9112 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -654,7 +654,7 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () { const listEntry = this.getPromptListEntry(this.activeCharacter, prompt.identifier); const enabledClass = listEntry.enabled ? '' : `${prefix}prompt_manager_prompt_disabled`; - const draggableClass = draggableEnabled ? 'draggable' : ''; + const draggableClass = draggableEnabled ? 'draggable' : prompt.marker ? 'droppable' : ''; const markerClass = prompt.marker ? `${prefix}prompt_manager_marker` : ''; const calculatedTokens = prompt.calculated_tokens ? prompt.calculated_tokens : '-';