Fix alignment of swipe counter

This commit is contained in:
Cohee
2024-09-11 19:52:31 +03:00
parent 9e522b0330
commit e0c3ac84a2
2 changed files with 4 additions and 4 deletions

View File

@@ -7486,7 +7486,7 @@ export function showSwipeButtons() {
const currentMessage = $('#chat').children().filter(`[mesid="${chat.length - 1}"]`); const currentMessage = $('#chat').children().filter(`[mesid="${chat.length - 1}"]`);
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)}`); const swipeCounterText = (`${(swipeId + 1)}\u200B/\u200b${(chat[chat.length - 1].swipes.length)}`);
if (swipeId !== undefined && (chat[chat.length - 1].swipes.length > 1 || swipeId > 0)) { 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');
@@ -7503,7 +7503,7 @@ export function showSwipeButtons() {
} }
//console.log(swipesCounterHTML); //console.log(swipesCounterHTML);
$('.swipes-counter').html(swipesCounterHTML); $('.swipes-counter').text(swipeCounterText);
//console.log(swipeId); //console.log(swipeId);
//console.log(chat[chat.length - 1].swipes.length); //console.log(chat[chat.length - 1].swipes.length);

View File

@@ -993,7 +993,7 @@ body .panelControlBar {
padding: 0; padding: 0;
font-family: var(--mainFontFamily); font-family: var(--mainFontFamily);
font-weight: 400; font-weight: 400;
align-self: self-end; align-self: center;
} }
.swipe_left { .swipe_left {