Fix dropspot highlight not appearing on hover

This commit is contained in:
maver 2023-06-03 21:59:51 +02:00
parent 53fe7f1d94
commit ff07572fd4
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ DraggableListModule.prototype.getClosestDraggable = function (element) {
DraggableListModule.prototype.getClosestDroppable = function (element) { DraggableListModule.prototype.getClosestDroppable = function (element) {
return element !== this.list && element.closest('#' + this.list.id) return element !== this.list && element.closest('#' + this.list.id)
? element.closest('.dropAllowed') ? element.closest('.droppable')
: null; : null;
} }

View File

@ -654,7 +654,7 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () {
const listEntry = this.getPromptListEntry(this.activeCharacter, prompt.identifier); const listEntry = this.getPromptListEntry(this.activeCharacter, prompt.identifier);
const enabledClass = listEntry.enabled ? '' : `${prefix}prompt_manager_prompt_disabled`; 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 markerClass = prompt.marker ? `${prefix}prompt_manager_marker` : '';
const calculatedTokens = prompt.calculated_tokens ? prompt.calculated_tokens : '-'; const calculatedTokens = prompt.calculated_tokens ? prompt.calculated_tokens : '-';