mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fixes
This commit is contained in:
@ -645,20 +645,22 @@ export class QuickReply {
|
|||||||
}
|
}
|
||||||
this.editorDebugState.textContent = JSON.stringify(closure.scope.variables, (key, val)=>{
|
this.editorDebugState.textContent = JSON.stringify(closure.scope.variables, (key, val)=>{
|
||||||
if (val instanceof SlashCommandClosure) return val.toString();
|
if (val instanceof SlashCommandClosure) return val.toString();
|
||||||
|
if (val === undefined) return null;
|
||||||
return val;
|
return val;
|
||||||
}, 2);
|
}, 2);
|
||||||
this.editorDebugState.classList.add('qr--active');
|
this.editorDebugState.classList.add('qr--active');
|
||||||
const loc = this.getEditorPosition(executor.start - 1, executor.end);
|
const loc = this.getEditorPosition(executor.start - 1, executor.end);
|
||||||
|
const layer = this.editorPopup.dlg.getBoundingClientRect();
|
||||||
const hi = document.createElement('div');
|
const hi = document.createElement('div');
|
||||||
hi.style.position = 'fixed';
|
hi.style.position = 'fixed';
|
||||||
hi.style.left = `${loc.left}px`;
|
hi.style.left = `${loc.left - layer.left}px`;
|
||||||
hi.style.width = `${loc.right - loc.left}px`;
|
hi.style.width = `${loc.right - loc.left}px`;
|
||||||
hi.style.top = `${loc.top}px`;
|
hi.style.top = `${loc.top - layer.top}px`;
|
||||||
hi.style.height = `${loc.bottom - loc.top}px`;
|
hi.style.height = `${loc.bottom - loc.top}px`;
|
||||||
hi.style.zIndex = '50000';
|
hi.style.zIndex = '50000';
|
||||||
hi.style.pointerEvents = 'none';
|
hi.style.pointerEvents = 'none';
|
||||||
hi.style.backgroundColor = 'rgb(255 255 0 / 0.5)';
|
hi.style.backgroundColor = 'rgb(255 255 0 / 0.5)';
|
||||||
document.body.append(hi);
|
this.editorPopup.dlg.append(hi);
|
||||||
const isStepping = await this.debugController.awaitContinue();
|
const isStepping = await this.debugController.awaitContinue();
|
||||||
hi.remove();
|
hi.remove();
|
||||||
this.editorDebugState.textContent = '';
|
this.editorDebugState.textContent = '';
|
||||||
|
Reference in New Issue
Block a user