Set min-height for contenteditable

4cfce43e5d7ff8bd56acb71c7573194d531b2e2a

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

2 files changed, +1 -4Showing whitespace changes
public/scripts/instruct-mode.js+0 -4
@@ -611,15 +611,11 @@ jQuery(() => {
611 if (state) {611 if (state) {
612 $('#instruct_system_sequence_block').addClass('disabled');612 $('#instruct_system_sequence_block').addClass('disabled');
613 $('#instruct_system_suffix_block').addClass('disabled');613 $('#instruct_system_suffix_block').addClass('disabled');
614 $('#instruct_system_sequence').css('height', 'auto');
615 $('#instruct_system_suffix').css('height', 'auto');
616 $('#instruct_system_sequence').prop('contenteditable', false);614 $('#instruct_system_sequence').prop('contenteditable', false);
617 $('#instruct_system_suffix').prop('contenteditable', false);615 $('#instruct_system_suffix').prop('contenteditable', false);
618 } else {616 } else {
619 $('#instruct_system_sequence_block').removeClass('disabled');617 $('#instruct_system_sequence_block').removeClass('disabled');
620 $('#instruct_system_suffix_block').removeClass('disabled');618 $('#instruct_system_suffix_block').removeClass('disabled');
621 $('#instruct_system_sequence').css('height', '');
622 $('#instruct_system_suffix').css('height', '');
623 $('#instruct_system_sequence').prop('contenteditable', true);619 $('#instruct_system_sequence').prop('contenteditable', true);
624 $('#instruct_system_suffix').prop('contenteditable', true);620 $('#instruct_system_suffix').prop('contenteditable', true);
625 }621 }
public/style.css+1 -0
@@ -5460,4 +5460,5 @@ body:not(.movingUI) .drawer-content.maximized {
5460 max-height: 50dvh;5460 max-height: 50dvh;
5461 resize: vertical;5461 resize: vertical;
5462 overflow: auto;5462 overflow: auto;
5463 min-height: 1.8em;
5463}5464}