Fix dropspot highlight not appearing on hover
This commit is contained in:
parent
53fe7f1d94
commit
ff07572fd4
|
@ -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};
|
||||
export {DraggablePromptListModule};
|
||||
|
|
|
@ -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 : '-';
|
||||
|
||||
|
|
Loading…
Reference in New Issue