mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Auto-scrollheight for SD char prefix
This commit is contained in:
parent
3f47386cba
commit
dd69fd3934
@ -241,6 +241,7 @@ function onChatChanged() {
|
|||||||
function onCharacterPromptInput() {
|
function onCharacterPromptInput() {
|
||||||
const key = getCharaFilename(this_chid);
|
const key = getCharaFilename(this_chid);
|
||||||
extension_settings.sd.character_prompts[key] = $('#sd_character_prompt').val();
|
extension_settings.sd.character_prompts[key] = $('#sd_character_prompt').val();
|
||||||
|
resetScrollHeight($(this));
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -958,6 +959,7 @@ jQuery(async () => {
|
|||||||
$('.sd_settings .inline-drawer-toggle').on('click', function () {
|
$('.sd_settings .inline-drawer-toggle').on('click', function () {
|
||||||
initScrollHeight($("#sd_prompt_prefix"));
|
initScrollHeight($("#sd_prompt_prefix"));
|
||||||
initScrollHeight($("#sd_negative_prompt"));
|
initScrollHeight($("#sd_negative_prompt"));
|
||||||
|
initScrollHeight($("#sd_character_prompt"));
|
||||||
})
|
})
|
||||||
|
|
||||||
eventSource.on(event_types.EXTRAS_CONNECTED, async () => {
|
eventSource.on(event_types.EXTRAS_CONNECTED, async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user