dumbfix heights of disabled instruct system sequence fields

2f36b659cf77b24ecbe9a518e7b821d9f1ec55ff

RossAscends <124905043+RossAscends@users.noreply.github.com>

1 files changed, +9 -6Ignore whitespace
public/scripts/instruct-mode.js+9 -6
@@ -78,7 +78,7 @@ function migrateInstructModeSettings(settings) {
7878 * Loads instruct mode settings from the given data object.
7979 * @param {object} data Settings data object.
8080 */
8181export async function loadInstructMode(data) {
8282 if (data.instruct !== undefined) {
8383 instruct_presets = data.instruct;
8484 }
@@ -104,10 +104,10 @@ export function loadInstructMode(data) {
104104 power_user.instruct[control.property] = control.isCheckbox ? !!$(this).prop('checked') : $(this)[0].innerText;
105105 saveSettingsDebounced();
106106 /*
107107 if (!control.isCheckbox) {
108108 await resetScrollHeight($element);
109109 }
110110 */
111111 });
112112
113113 if (control.trigger) {
@@ -115,6 +115,9 @@ export function loadInstructMode(data) {
115115 }
116116 });
117117
118+ $('#instruct_system_sequence').css('height', 'auto');
119+ $('#instruct_system_suffix').css('height', 'auto');
120+
118121 instruct_presets.forEach((preset) => {
119122 const name = preset.name;
120123 const option = document.createElement('option');
@@ -625,7 +628,7 @@ jQuery(() => {
625628 $('#instruct_system_sequence_block').removeClass('disabled');
626629 $('#instruct_system_suffix_block').removeClass('disabled');
627630 $('#instruct_system_sequence').css('height', '');
628631 $('#instruct_system_sequenceinstruct_system_suffix').css('height', '');
629632 $('#instruct_system_sequence').prop('contenteditable', true);
630633 $('#instruct_system_suffix').prop('contenteditable', true);
631634 }