hidden-photo-toggle (#850)

不能在切换回去,在工位上看图片实在太

Signed-off-by: el-psy <gaojingjingjing@outlook.com>
pull/853/head
el-psy 2023-08-14 16:59:28 +08:00 committed by GitHub
parent 3a2467c91a
commit 0feba576c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,10 @@ document.addEventListener(
document.addEventListener(
"click",
(event) => {
if (!event.target.classList.contains("mask")) return;
// if (!event.target.classList.contains("mask")) return;
const photo = event.target.closest(".hidden-photo");
if (!photo) return;
photo.classList.add("show");
photo.classList.toggle("show");
},
{ capture: true }
);