fix: change how number of images are detected

This commit is contained in:
Sebin Nyshkim 2022-01-06 18:56:07 +01:00
parent 8487906800
commit fc94921554

View file

@ -63,7 +63,9 @@ export default {
}, },
}, },
mounted() { mounted() {
const images = Array.from(this.$el.querySelectorAll("img")); const sel = ".gallery__viewport .figure";
const elements = this.$el.querySelectorAll(sel);
const images = Array.from(elements);
this.images = images; this.images = images;
}, },
}; };
@ -83,6 +85,8 @@ export default {
width: 1em; width: 1em;
height: 1em; height: 1em;
z-index: 1;
border: { border: {
top: 0.125em solid #fff; top: 0.125em solid #fff;
right: 0.125em solid #fff; right: 0.125em solid #fff;