Fix instruct_system_same_as_user disabled mode heights

be03772c5236f07294e9c8d25fc08985e0159a4a

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -3Showing whitespace changes
public/scripts/instruct-mode.js+2 -3
@@ -609,11 +609,10 @@ jQuery(() => {
609 $('#instruct_system_same_as_user').on('input', function () {609 $('#instruct_system_same_as_user').on('input', function () {
610 const state = !!$(this).prop('checked');610 const state = !!$(this).prop('checked');
611 if (state) {611 if (state) {
612 const tempHeightForDisabled = $('#instruct_system_sequence').css('height');
613 $('#instruct_system_sequence_block').addClass('disabled');612 $('#instruct_system_sequence_block').addClass('disabled');
614 $('#instruct_system_suffix_block').addClass('disabled');613 $('#instruct_system_suffix_block').addClass('disabled');
615 $('#instruct_system_sequence').css('height', tempHeightForDisabled);614 $('#instruct_system_sequence').css('height', 'auto');
616 $('#instruct_system_suffix').css('height', tempHeightForDisabled);615 $('#instruct_system_suffix').css('height', 'auto');
617 $('#instruct_system_sequence').prop('contenteditable', false);616 $('#instruct_system_sequence').prop('contenteditable', false);
618 $('#instruct_system_suffix').prop('contenteditable', false);617 $('#instruct_system_suffix').prop('contenteditable', false);
619 } else {618 } else {