Adding unique galleryImageDraggable class to draggable div with gallery Image inside (#4310)

This commit is contained in:
IceFog72
2025-07-25 22:32:59 +03:00
committed by GitHub
parent 2a971a517c
commit 8948d9773e
@@ -604,6 +604,9 @@ function makeDragImg(id, url) {
}
draggableElem.id = uniqueId;
// Add the galleryImageDraggable to have unique class
draggableElem.classList.add('galleryImageDraggable');
// Ensure that the newly added element is displayed as block
draggableElem.style.display = 'block';
//and has no padding unlike other non-zoomed-avatar draggables