feat(album): add thumbnails and AlbumViewer.vue

This commit is contained in:
2025-05-26 15:11:57 -04:00
parent ea0241dd8d
commit a08b384495
11 changed files with 847 additions and 68 deletions

View File

@@ -4,7 +4,8 @@
<div class="image-grid">
<div v-for="(url, index) in displayedImages"
:key="index"
class="image-wrapper">
class="image-wrapper"
@click="$emit('photo-click', index)">
<img :src="url"
:alt="t('creator.sections.album.image')"
class="image"/>
@@ -14,6 +15,9 @@
</template>
<script setup>
// Add 'photo-click' to emits
const emit = defineEmits(['photo-click']);
import { computed, ref, onMounted, onUnmounted } from "vue";
import { useI18n } from 'vue-i18n';
@@ -131,4 +135,4 @@ const gridColumns = computed(() => {
}
}
}
</i18n>
</i18n>