fix: change how number of images are detected
This commit is contained in:
parent
8487906800
commit
fc94921554
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,9 @@ export default {
|
|||
},
|
||||
},
|
||||
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;
|
||||
},
|
||||
};
|
||||
|
@ -83,6 +85,8 @@ export default {
|
|||
width: 1em;
|
||||
height: 1em;
|
||||
|
||||
z-index: 1;
|
||||
|
||||
border: {
|
||||
top: 0.125em solid #fff;
|
||||
right: 0.125em solid #fff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue