hidden-photo-toggle (#850)
不能在切换回去,在工位上看图片实在太 Signed-off-by: el-psy <gaojingjingjing@outlook.com>pull/853/head
parent
3a2467c91a
commit
0feba576c3
|
@ -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 }
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue