fix zoomed avatars when swapping personas
This commit is contained in:
parent
8636987d8a
commit
ab8fb98f5d
|
@ -4723,6 +4723,7 @@ function setUserAvatar() {
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
highlightSelectedAvatar();
|
highlightSelectedAvatar();
|
||||||
selectCurrentPersona();
|
selectCurrentPersona();
|
||||||
|
$('.zoomed_avatar[forchar]').remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function uploadUserAvatar(e) {
|
async function uploadUserAvatar(e) {
|
||||||
|
@ -6423,7 +6424,7 @@ function swipe_left() { // when we swipe left..but no generation.
|
||||||
|
|
||||||
const swipeMessage = $("#chat").find(`[mesid="${count_view_mes - 1}"]`);
|
const swipeMessage = $("#chat").find(`[mesid="${count_view_mes - 1}"]`);
|
||||||
const tokenCount = getTokenCount(chat[chat.length - 1].mes, 0);
|
const tokenCount = getTokenCount(chat[chat.length - 1].mes, 0);
|
||||||
chat[chat.length -1]['extra']['token_count'] = tokenCount;
|
chat[chat.length - 1]['extra']['token_count'] = tokenCount;
|
||||||
swipeMessage.find('.tokenCounterDisplay').text(`${tokenCount}t`);
|
swipeMessage.find('.tokenCounterDisplay').text(`${tokenCount}t`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6600,7 +6601,7 @@ const swipe_right = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const tokenCount = getTokenCount(chat[chat.length - 1].mes, 0);
|
const tokenCount = getTokenCount(chat[chat.length - 1].mes, 0);
|
||||||
chat[chat.length -1]['extra']['token_count'] = tokenCount;
|
chat[chat.length - 1]['extra']['token_count'] = tokenCount;
|
||||||
swipeMessage.find('.tokenCounterDisplay').text(`${tokenCount}t`);
|
swipeMessage.find('.tokenCounterDisplay').text(`${tokenCount}t`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue