dumbfix heights of disabled instruct system sequence fields

2f36b659cf77b24ecbe9a518e7b821d9f1ec55ff

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

1 files changed, +5 -2Showing whitespace changes
public/scripts/instruct-mode.js+5 -2
@@ -78,7 +78,7 @@ function migrateInstructModeSettings(settings) {
78 * Loads instruct mode settings from the given data object.78 * Loads instruct mode settings from the given data object.
79 * @param {object} data Settings data object.79 * @param {object} data Settings data object.
80 */80 */
81export function loadInstructMode(data) {81export async function loadInstructMode(data) {
82 if (data.instruct !== undefined) {82 if (data.instruct !== undefined) {
83 instruct_presets = data.instruct;83 instruct_presets = data.instruct;
84 }84 }
@@ -115,6 +115,9 @@ export function loadInstructMode(data) {
115 }115 }
116 });116 });
117117
118 $('#instruct_system_sequence').css('height', 'auto');
119 $('#instruct_system_suffix').css('height', 'auto');
120
118 instruct_presets.forEach((preset) => {121 instruct_presets.forEach((preset) => {
119 const name = preset.name;122 const name = preset.name;
120 const option = document.createElement('option');123 const option = document.createElement('option');
@@ -625,7 +628,7 @@ jQuery(() => {
625 $('#instruct_system_sequence_block').removeClass('disabled');628 $('#instruct_system_sequence_block').removeClass('disabled');
626 $('#instruct_system_suffix_block').removeClass('disabled');629 $('#instruct_system_suffix_block').removeClass('disabled');
627 $('#instruct_system_sequence').css('height', '');630 $('#instruct_system_sequence').css('height', '');
628 $('#instruct_system_sequence').css('height', '');631 $('#instruct_system_suffix').css('height', '');
629 $('#instruct_system_sequence').prop('contenteditable', true);632 $('#instruct_system_sequence').prop('contenteditable', true);
630 $('#instruct_system_suffix').prop('contenteditable', true);633 $('#instruct_system_suffix').prop('contenteditable', true);
631 }634 }