mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-14 11:01:06 +08:00
Compare commits
1 Commits
codex/remo
...
codex/fix-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abbdb224e0 |
@@ -342,7 +342,7 @@ const copyCommentLink = () => {
|
|||||||
|
|
||||||
const handleContentClick = (e) => {
|
const handleContentClick = (e) => {
|
||||||
handleMarkdownClick(e)
|
handleMarkdownClick(e)
|
||||||
if (e.target.tagName === 'IMG') {
|
if (e.target.tagName === 'IMG' && !e.target.classList.contains('emoji')) {
|
||||||
const container = e.target.parentNode
|
const container = e.target.parentNode
|
||||||
const imgs = [...container.querySelectorAll('img')].map((i) => i.src)
|
const imgs = [...container.querySelectorAll('img')].map((i) => i.src)
|
||||||
lightboxImgs.value = imgs
|
lightboxImgs.value = imgs
|
||||||
|
|||||||
@@ -463,7 +463,11 @@ function minimize() {
|
|||||||
|
|
||||||
function handleContentClick(e) {
|
function handleContentClick(e) {
|
||||||
handleMarkdownClick(e)
|
handleMarkdownClick(e)
|
||||||
if (e.target.tagName === 'IMG') {
|
if (
|
||||||
|
e.target.tagName === 'IMG' &&
|
||||||
|
!e.target.classList.contains('emoji') &&
|
||||||
|
!e.target.closest('.reactions-container')
|
||||||
|
) {
|
||||||
const container = e.target.parentNode
|
const container = e.target.parentNode
|
||||||
const imgs = [...container.querySelectorAll('img')].map((i) => i.src)
|
const imgs = [...container.querySelectorAll('img')].map((i) => i.src)
|
||||||
lightboxImgs.value = imgs
|
lightboxImgs.value = imgs
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ const removeCommentFromList = (id, list) => {
|
|||||||
|
|
||||||
const handleContentClick = (e) => {
|
const handleContentClick = (e) => {
|
||||||
handleMarkdownClick(e)
|
handleMarkdownClick(e)
|
||||||
if (e.target.tagName === 'IMG') {
|
if (e.target.tagName === 'IMG' && !e.target.classList.contains('emoji')) {
|
||||||
const container = e.target.parentNode
|
const container = e.target.parentNode
|
||||||
const imgs = [...container.querySelectorAll('img')].map((i) => i.src)
|
const imgs = [...container.querySelectorAll('img')].map((i) => i.src)
|
||||||
lightboxImgs.value = imgs
|
lightboxImgs.value = imgs
|
||||||
|
|||||||
Reference in New Issue
Block a user