fix heights for WI 2ndary / SD prefix/neg inputs

This commit is contained in:
RossAscends
2023-05-07 00:09:02 +09:00
parent f1f150e5d1
commit c5d53f9134
4 changed files with 38 additions and 14 deletions

View File

@@ -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();
});