Auto-scrollheight for SD char prefix

This commit is contained in:
Cohee 2023-07-23 00:28:23 +03:00
parent 3f47386cba
commit dd69fd3934
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,7 @@ function onChatChanged() {
function onCharacterPromptInput() {
const key = getCharaFilename(this_chid);
extension_settings.sd.character_prompts[key] = $('#sd_character_prompt').val();
resetScrollHeight($(this));
saveSettingsDebounced();
}
@ -958,6 +959,7 @@ jQuery(async () => {
$('.sd_settings .inline-drawer-toggle').on('click', function () {
initScrollHeight($("#sd_prompt_prefix"));
initScrollHeight($("#sd_negative_prompt"));
initScrollHeight($("#sd_character_prompt"));
})
eventSource.on(event_types.EXTRAS_CONNECTED, async () => {