diff --git a/src/components/RefGallery.vue b/src/components/RefGallery.vue index 3160fb9..6379c02 100644 --- a/src/components/RefGallery.vue +++ b/src/components/RefGallery.vue @@ -1,30 +1,64 @@ @@ -44,7 +78,7 @@ onMounted(() => { v-show="activeImage < images.length - 1" > -
@@ -55,7 +89,7 @@ onMounted(() => { @@ -105,7 +139,16 @@ onMounted(() => { width: 100%; height: 100%; + overflow: auto; + scroll-snap-type: x mandatory; + + scrollbar-width: none; + transition: 0.3s all ease-in-out; + + &::-webkit-scrollbar { + display: none; + } } .figure { @@ -113,6 +156,8 @@ onMounted(() => { padding: var(--gallery-image-padding); flex: 1 0 100%; + scroll-snap-align: center; + &__meta { text-align: center;