mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 20:32:26 -05:00
[feature] Update attachment format, receive + send focalPoint prop + use it on the frontend
This commit is contained in:
parent
68ed7aba25
commit
b841e9e9b1
19 changed files with 595 additions and 81 deletions
|
|
@ -29,6 +29,7 @@
|
|||
const Photoswipe = require("photoswipe/dist/umd/photoswipe.umd.min.js");
|
||||
const PhotoswipeLightbox = require("photoswipe/dist/umd/photoswipe-lightbox.umd.min.js");
|
||||
const PhotoswipeCaptionPlugin = require("photoswipe-dynamic-caption-plugin").default;
|
||||
const ObjectPosition = require("./photoswipe-object-position.js").default;
|
||||
const Plyr = require("plyr");
|
||||
const Prism = require("./prism.js");
|
||||
|
||||
|
|
@ -61,6 +62,10 @@ new PhotoswipeCaptionPlugin(lightbox, {
|
|||
}
|
||||
});
|
||||
|
||||
// Enable object-position plugin for lightbox so that css
|
||||
// object-position property can be used on preview images.
|
||||
new ObjectPosition(lightbox);
|
||||
|
||||
lightbox.addFilter('itemData', (item) => {
|
||||
const el = item.element;
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue