mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix heights for WI 2ndary / SD prefix/neg inputs
This commit is contained in:
@@ -188,6 +188,7 @@ function appendWorldEntry(entry) {
|
||||
.filter((x) => x);
|
||||
saveWorldInfo();
|
||||
});
|
||||
|
||||
keySecondaryInput.val(entry.keysecondary.join(",")).trigger("input");
|
||||
initScrollHeight(keySecondaryInput);
|
||||
|
||||
@@ -235,13 +236,17 @@ function appendWorldEntry(entry) {
|
||||
.closest(".world_entry")
|
||||
.find(".keysecondary");
|
||||
|
||||
const keyPrimary = $(this)
|
||||
const keysecondarytextpole = $(this)
|
||||
.closest(".world_entry")
|
||||
.find(".key");
|
||||
.find(".keysecondarytextpole");
|
||||
|
||||
const keyPrimaryHeight = $(keyPrimary).css('height');
|
||||
const keyprimarytextpole = $(this)
|
||||
.closest(".world_entry")
|
||||
.find(".keyprimarytextpole");
|
||||
|
||||
const keyprimaryHeight = keyprimarytextpole.outerHeight();
|
||||
keysecondarytextpole.css('height', keyprimaryHeight + 'px');
|
||||
|
||||
keysecondary.css('height', keyPrimaryHeight) + 'px';
|
||||
value ? keysecondary.show() : keysecondary.hide();
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user