fix(ui): mount ImageViewer globally so tile clicks open as overlay, not route-redirect to /gallery

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-23 11:13:19 -04:00
parent 061dc9e605
commit 505dca1b4d
4 changed files with 10 additions and 9 deletions
+3 -1
View File
@@ -104,11 +104,13 @@
import { computed, watch } from 'vue'
import { useRoute, useRouter, RouterLink } from 'vue-router'
import { useArtistStore } from '../stores/artist.js'
import { useModalStore } from '../stores/modal.js'
import MasonryGrid from '../components/discovery/MasonryGrid.vue'
const route = useRoute()
const router = useRouter()
const store = useArtistStore()
const modal = useModalStore()
const slug = computed(() => route.params.slug)
@@ -136,7 +138,7 @@ const sparkPoints = computed(() => {
})
function openImage(id) {
router.push({ name: 'gallery', query: { image: id } })
modal.open(id)
}
function openTag(tagId) {
router.push({ name: 'gallery', query: { tag_id: tagId } })