Don't force aspect ratio of zoomed avatars. Prevent closing on drag grabber.
This commit is contained in:
parent
fcb47c9401
commit
1de409fdf7
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue