Replacing .embeddedMedia by .embed in the code works.
I guess this is all due to the new feature introduced with 2.3 of embedding internal links like resources and posts, everything is grouped under .embed now. With width and max-width set to 100% this is suitable for integrated resources and messages but it impacts gallery media integrations.
CSS:
.embed {
width: fit-content;
}
So this code works well for integrations from the gallery but not necessarily for resources and messages...
What to do in the meantime, if this ever needs to be fixed?
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XFMG release (2.3.14).
Change log:
Make embedded gallery frames fit their media again (#2725)