mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:50:37 -06:00
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:
parent
b83d4953da
commit
8ed7f46ce3
@ -159,6 +159,9 @@ export default {
|
||||
image: {
|
||||
verticalFit: true,
|
||||
},
|
||||
gallery: {
|
||||
enabled: true,
|
||||
},
|
||||
callbacks: {
|
||||
elementParse: (item) => {
|
||||
item.src = item.el[0].dataset.largeSrc || item.el[0].src;
|
||||
|
Loading…
Reference in New Issue
Block a user