avatar popups enabled on mobile normal mode

This commit is contained in:
RossAscends
2023-05-03 06:03:49 +09:00
parent 1ecccd5d66
commit a10909c538
2 changed files with 20 additions and 14 deletions

View File

@ -5458,7 +5458,7 @@ $(document).ready(function () {
$(document).on('click', '.mes .avatar', function () {
if (window.innerWidth > 1000 || $('body').hasClass('waifuMode')) {
//if (window.innerWidth > 1000 || $('body').hasClass('waifuMode')) {
let thumbURL = $(this).children('img').attr('src');
let charsPath = '/characters/'
@ -5473,7 +5473,7 @@ $(document).ready(function () {
}
$('#avatar_zoom_popup').toggle();
} else { return; }
//} else { return; }
});
$(document).on('click', '#OpenAllWIEntries', function () {

View File

@ -3967,6 +3967,12 @@ body.waifuMode #avatar_zoom_popup {
object-fit: cover;
}
body:not(.waifuMode) #avatar_zoom_popup {
z-index: 999;
width: fit-content;
max-height: calc(60svh - 60px);
}
body.waifuMode #avatar_zoom_popup {
width: fit-content;
max-height: calc(60svh - 60px);