mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Set min-height for contenteditable
This commit is contained in:
@ -611,15 +611,11 @@ jQuery(() => {
|
|||||||
if (state) {
|
if (state) {
|
||||||
$('#instruct_system_sequence_block').addClass('disabled');
|
$('#instruct_system_sequence_block').addClass('disabled');
|
||||||
$('#instruct_system_suffix_block').addClass('disabled');
|
$('#instruct_system_suffix_block').addClass('disabled');
|
||||||
$('#instruct_system_sequence').css('height', 'auto');
|
|
||||||
$('#instruct_system_suffix').css('height', 'auto');
|
|
||||||
$('#instruct_system_sequence').prop('contenteditable', false);
|
$('#instruct_system_sequence').prop('contenteditable', false);
|
||||||
$('#instruct_system_suffix').prop('contenteditable', false);
|
$('#instruct_system_suffix').prop('contenteditable', false);
|
||||||
} else {
|
} else {
|
||||||
$('#instruct_system_sequence_block').removeClass('disabled');
|
$('#instruct_system_sequence_block').removeClass('disabled');
|
||||||
$('#instruct_system_suffix_block').removeClass('disabled');
|
$('#instruct_system_suffix_block').removeClass('disabled');
|
||||||
$('#instruct_system_sequence').css('height', '');
|
|
||||||
$('#instruct_system_suffix').css('height', '');
|
|
||||||
$('#instruct_system_sequence').prop('contenteditable', true);
|
$('#instruct_system_sequence').prop('contenteditable', true);
|
||||||
$('#instruct_system_suffix').prop('contenteditable', true);
|
$('#instruct_system_suffix').prop('contenteditable', true);
|
||||||
}
|
}
|
||||||
|
@ -5460,4 +5460,5 @@ body:not(.movingUI) .drawer-content.maximized {
|
|||||||
max-height: 50dvh;
|
max-height: 50dvh;
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
min-height: 1.8em;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user