Don't force aspect ratio of zoomed avatars. Prevent closing on drag grabber.

This commit is contained in:
Cohee 2024-04-14 20:20:22 +03:00
parent fcb47c9401
commit 1de409fdf7
2 changed files with 3 additions and 1 deletions

View File

@ -10242,6 +10242,9 @@ jQuery(async function () {
$('.zoomed_avatar_container').izoomify();
$('.zoomed_avatar').on('click', (e) => {
if (e.target.closest('.drag-grabber')) {
return;
}
$(`.zoomed_avatar[forChar="${charname}"]`).fadeOut();
setTimeout(function() { $(`.zoomed_avatar[forChar="${charname}"]`).remove(); }, 410);
});

View File

@ -3805,7 +3805,6 @@ body:not(.movingUI) .drawer-content.maximized {
--leftGapWidth: calc((100vw - var(--sheldWidth)) / 2);
/* Left position of the avatar (half of the gap minus half of the avatar width) */
--leftPosition: max(0px, calc((var(--leftGapWidth) - var(--maxWidth)) / 2));
aspect-ratio: 2 / 3;
padding: 0;
border: 0;
background-color: transparent;