mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't force aspect ratio of zoomed avatars. Prevent closing on drag grabber.
This commit is contained in:
@ -10242,6 +10242,9 @@ jQuery(async function () {
|
|||||||
$('.zoomed_avatar_container').izoomify();
|
$('.zoomed_avatar_container').izoomify();
|
||||||
|
|
||||||
$('.zoomed_avatar').on('click', (e) => {
|
$('.zoomed_avatar').on('click', (e) => {
|
||||||
|
if (e.target.closest('.drag-grabber')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$(`.zoomed_avatar[forChar="${charname}"]`).fadeOut();
|
$(`.zoomed_avatar[forChar="${charname}"]`).fadeOut();
|
||||||
setTimeout(function() { $(`.zoomed_avatar[forChar="${charname}"]`).remove(); }, 410);
|
setTimeout(function() { $(`.zoomed_avatar[forChar="${charname}"]`).remove(); }, 410);
|
||||||
});
|
});
|
||||||
|
@ -3805,7 +3805,6 @@ body:not(.movingUI) .drawer-content.maximized {
|
|||||||
--leftGapWidth: calc((100vw - var(--sheldWidth)) / 2);
|
--leftGapWidth: calc((100vw - var(--sheldWidth)) / 2);
|
||||||
/* Left position of the avatar (half of the gap minus half of the avatar width) */
|
/* Left position of the avatar (half of the gap minus half of the avatar width) */
|
||||||
--leftPosition: max(0px, calc((var(--leftGapWidth) - var(--maxWidth)) / 2));
|
--leftPosition: max(0px, calc((var(--leftGapWidth) - var(--maxWidth)) / 2));
|
||||||
aspect-ratio: 2 / 3;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
Reference in New Issue
Block a user