Fix alignment of swipe counter

e0c3ac84a2a10ba7f75773e0fb3fb3fa19e36fb1

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +4 -4Ignore whitespace
public/script.js+2 -2
@@ -7486,7 +7486,7 @@ export function showSwipeButtons() {
74867486
7487 const currentMessage = $('#chat').children().filter(`[mesid="${chat.length - 1}"]`);7487 const currentMessage = $('#chat').children().filter(`[mesid="${chat.length - 1}"]`);
7488 const swipeId = chat[chat.length - 1].swipe_id;7488 const swipeId = chat[chat.length - 1].swipe_id;
7489 var swipesCounterHTML = (`${(swipeId + 1)}/${(chat[chat.length - 1].swipes.length)}`);7489 const swipeCounterText = (`${(swipeId + 1)}\u200B/\u200b${(chat[chat.length - 1].swipes.length)}`);
74907490
7491 if (swipeId !== undefined && (chat[chat.length - 1].swipes.length > 1 || swipeId > 0)) {7491 if (swipeId !== undefined && (chat[chat.length - 1].swipes.length > 1 || swipeId > 0)) {
7492 currentMessage.children('.swipe_left').css('display', 'flex');7492 currentMessage.children('.swipe_left').css('display', 'flex');
@@ -7503,7 +7503,7 @@ export function showSwipeButtons() {
7503 }7503 }
7504 //console.log(swipesCounterHTML);7504 //console.log(swipesCounterHTML);
75057505
7506 $('.swipes-counter').html(swipesCounterHTML);7506 $('.swipes-counter').text(swipeCounterText);
75077507
7508 //console.log(swipeId);7508 //console.log(swipeId);
7509 //console.log(chat[chat.length - 1].swipes.length);7509 //console.log(chat[chat.length - 1].swipes.length);
public/style.css+2 -2
@@ -993,7 +993,7 @@ body .panelControlBar {
993 padding: 0;993 padding: 0;
994 font-family: var(--mainFontFamily);994 font-family: var(--mainFontFamily);
995 font-weight: 400;995 font-weight: 400;
996 align-self: self-end;996 align-self: center;
997}997}
998998
999.swipe_left {999.swipe_left {
@@ -5459,4 +5459,4 @@ body:not(.movingUI) .drawer-content.maximized {
54595459
5460#AdvancedFormatting .autoSetHeight {5460#AdvancedFormatting .autoSetHeight {
5461 overflow-wrap: anywhere;5461 overflow-wrap: anywhere;
5462}
5462 \ No newline at end of file \ No newline at end of file
5462}