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:
@@ -1920,7 +1920,7 @@ const appendixCards = [
|
|||||||
:aria-label="t.nav.title"
|
:aria-label="t.nav.title"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
class="nav-title-logo"
|
class="nav-title-logo no-viewer"
|
||||||
:src="withBase('/assets/easy-vibe-logo-hd.svg')"
|
:src="withBase('/assets/easy-vibe-logo-hd.svg')"
|
||||||
:alt="t.nav.title"
|
:alt="t.nav.title"
|
||||||
width="64"
|
width="64"
|
||||||
|
|||||||
@@ -1747,7 +1747,10 @@ export default {
|
|||||||
url: 'src', // 图片源
|
url: 'src', // 图片源
|
||||||
// 过滤掉不想查看的图片(比如表情包等小图标,如果需要的话)
|
// 过滤掉不想查看的图片(比如表情包等小图标,如果需要的话)
|
||||||
filter(image) {
|
filter(image) {
|
||||||
return !image.classList.contains('no-viewer')
|
return (
|
||||||
|
!image.classList.contains('no-viewer') &&
|
||||||
|
!image.classList.contains('nav-title-logo')
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user