Add css class to allow multiple avatar lists

This commit is contained in:
Wolfsblvt
2025-01-24 21:57:47 +01:00
parent 7c9b347116
commit 91dabeff53
4 changed files with 17 additions and 4 deletions

View File

@@ -558,7 +558,7 @@ export async function askForPersonaSelection(title, text, personas) {
content.appendChild(textElement);
const personaListBlock = document.createElement('div');
personaListBlock.classList.add('persona-list', 'avatars_inline', 'flex-container');
personaListBlock.classList.add('persona-list', 'avatars_inline', 'avatars_multiline');
content.appendChild(personaListBlock);
buildPersonaAvatarList(personaListBlock, personas, { interactable: true });
@@ -1201,7 +1201,7 @@ async function loadPersonaForCurrentChat() {
toastr.warning(t`More than one persona is connected to this character. Using the first available persona for this chat.`, t`Automatic Persona Selection`);
} else {
chatPersona = await askForPersonaSelection(t`Select Persona`,
t`Select one of multiple with this character connected persona to use for this chat`,
t`Multiple personas are connected to this character. Select a persona to use for this chat.`,
connectedPersonas);
}
}