mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Unblock left swipe on swipeId overflow.
This commit is contained in:
parent
e713021737
commit
afe3e824b1
@ -6527,7 +6527,7 @@ function showSwipeButtons() {
|
|||||||
const swipeId = chat[chat.length - 1].swipe_id;
|
const swipeId = chat[chat.length - 1].swipe_id;
|
||||||
var swipesCounterHTML = (`${(swipeId + 1)}/${(chat[chat.length - 1].swipes.length)}`);
|
var swipesCounterHTML = (`${(swipeId + 1)}/${(chat[chat.length - 1].swipes.length)}`);
|
||||||
|
|
||||||
if (swipeId !== undefined && chat[chat.length - 1].swipes.length > 1) {
|
if (swipeId !== undefined && (chat[chat.length - 1].swipes.length > 1 || swipeId > 0)) {
|
||||||
currentMessage.children('.swipe_left').css('display', 'flex');
|
currentMessage.children('.swipe_left').css('display', 'flex');
|
||||||
}
|
}
|
||||||
//only show right when generate is off, or when next right swipe would not make a generate happen
|
//only show right when generate is off, or when next right swipe would not make a generate happen
|
||||||
|
Loading…
Reference in New Issue
Block a user