fix(viewer): exclude nav logo from image viewer

Previously, the navigation title logo was incorrectly included in the image viewer's gallery. This change adds the `no-viewer` class to the logo image and updates the viewer filter to also exclude elements with the `nav-title-logo` class, ensuring the logo is not clickable or viewable in the image viewer modal.
This commit is contained in:
sanbuphy
2026-03-18 14:38:54 +08:00
parent 6b9e0fbf1d
commit 596213244a
2 changed files with 5 additions and 2 deletions
@@ -1920,7 +1920,7 @@ const appendixCards = [
:aria-label="t.nav.title"
>
<img
class="nav-title-logo"
class="nav-title-logo no-viewer"
:src="withBase('/assets/easy-vibe-logo-hd.svg')"
:alt="t.nav.title"
width="64"
+4 -1
View File
@@ -1747,7 +1747,10 @@ export default {
url: 'src', // 图片源
// 过滤掉不想查看的图片(比如表情包等小图标,如果需要的话)
filter(image) {
return !image.classList.contains('no-viewer')
return (
!image.classList.contains('no-viewer') &&
!image.classList.contains('nav-title-logo')
)
}
})
}