Skip to content
Snippets Groups Projects
Commit ac7cca77 authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[TASK] override default ratio, so that vertical videos work

parent 162ad71a
No related branches found
Tags 2.1.7
No related merge requests found
......@@ -18,7 +18,20 @@ export default class SgVimeoLightbox {
}
});
LightboxManager.init({ type: 'video', glightbox: { selector: '.sg-vimeo-item' } });
LightboxManager.init({
type: 'video',
glightbox: {
selector: '.sg-vimeo-item',
plyr: {
config: {
// override 16:9 default ratio, so that plyr automatically detects the video dimensions
// without this, vertical videos will have black bars around them,
// see also: https://github.com/biati-digital/glightbox/issues/196#issuecomment-817070671
ratio: '',
}
}
}
});
}
disableLightbox(event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment