mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
actual proper placement, styling, timing for avatar popup
This commit is contained in:
@ -5385,7 +5385,7 @@ $(document).ready(function () {
|
||||
|
||||
$(document).on('click', '.mes .avatar', function () {
|
||||
|
||||
|
||||
$('#avatar_zoom_popup').css('display', 'none');
|
||||
let thumbURL = $(this).children('img').attr('src');
|
||||
let charsPath = '/characters/'
|
||||
let targetAvatarImg = thumbURL.substring(thumbURL.lastIndexOf("=") + 1);
|
||||
@ -5402,9 +5402,11 @@ $(document).ready(function () {
|
||||
let avatarPopper = Popper.createPopper(document.getElementById('top-bar'), document.getElementById('avatar_zoom_popup'), {
|
||||
placement: 'bottom',
|
||||
});
|
||||
avatarPopper.update();
|
||||
|
||||
$('#avatar_zoom_popup').toggle();
|
||||
setTimeout(function () {
|
||||
avatarPopper.update();
|
||||
$('#avatar_zoom_popup').toggle();
|
||||
}, 100);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user