FIX: add gallery to lightbox for images in the same chat message (#24962)

When multiple chat images are uploaded to a single message they can use the lightbox gallery.
This commit is contained in:
David Battersby 2023-12-19 17:21:15 +08:00 committed by GitHub
parent b83d4953da
commit 8ed7f46ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,9 @@ export default {
image: { image: {
verticalFit: true, verticalFit: true,
}, },
gallery: {
enabled: true,
},
callbacks: { callbacks: {
elementParse: (item) => { elementParse: (item) => {
item.src = item.el[0].dataset.largeSrc || item.el[0].src; item.src = item.el[0].dataset.largeSrc || item.el[0].src;