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