Fix alignment of swipe counter
| @@ -7486,7 +7486,7 @@ export function showSwipeButtons() { | |||
| 7486 | 7486 | ||
| 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)}`); |
| 7490 | 7490 | ||
| 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); |
| 7505 | 7505 | ||
| 7506 | $('.swipes-counter').html(swipesCounterHTML); | 7506 | $('.swipes-counter').text(swipeCounterText); |
| 7507 | 7507 | ||
| 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); |
| @@ -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 | } |
| 998 | 998 | ||
| 999 | .swipe_left { | 999 | .swipe_left { |
| @@ -5459,4 +5459,4 @@ body:not(.movingUI) .drawer-content.maximized { | |||
| 5459 | 5459 | ||
| 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 | } | ||