From 3fddda0f211aaeec3f5e6d4791991641e770e7ab Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 27 Sep 2026 14:47:40 -0400 Subject: [PATCH 1/3] fix(v2): mount one PDF viewer at a time in the Media tab vue3-pdf-app wraps a single global pdf.js application and looks up its containers by fixed element ids. The Manual and Walkthrough subtabs stay mounted via v-show, so with a PDF in each, both PdfViewers ran against the same app: the walkthrough rendered into the manual's container (or not at all), and pages laid out while hidden came up blank. Only the last shown PDF subtab now mounts a PdfViewer, and only once it has been shown. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../components/GameDetails/ManualSubtab.vue | 13 +- .../components/GameDetails/MediaTab.test.ts | 119 ++++++++++++++++++ .../v2/components/GameDetails/MediaTab.vue | 37 ++++-- .../GameDetails/WalkthroughSubtab.vue | 7 +- 4 files changed, 159 insertions(+), 17 deletions(-) create mode 100644 frontend/src/v2/components/GameDetails/MediaTab.test.ts diff --git a/frontend/src/v2/components/GameDetails/ManualSubtab.vue b/frontend/src/v2/components/GameDetails/ManualSubtab.vue index 62c18d9f0..94781b2ed 100644 --- a/frontend/src/v2/components/GameDetails/ManualSubtab.vue +++ b/frontend/src/v2/components/GameDetails/ManualSubtab.vue @@ -1,5 +1,5 @@