From 2c811c06d344bf4fdd37fdfdb033f839f123197f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 21 Aug 2025 20:40:50 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15180 --- app/src/protyle/render/av/gallery/render.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/protyle/render/av/gallery/render.ts b/app/src/protyle/render/av/gallery/render.ts index 133f5b4f1..156ef639a 100644 --- a/app/src/protyle/render/av/gallery/render.ts +++ b/app/src/protyle/render/av/gallery/render.ts @@ -65,12 +65,9 @@ const getGalleryHTML = (data: IAVGallery) => { } const isEmpty = cellValueIsEmpty(cell.value); // NOTE: innerHTML 中不能换行否则 https://github.com/siyuan-note/siyuan/issues/15132 - let ariaLabel = ""; - if (!data.displayFieldName) { - ariaLabel = escapeAttr(data.fields[fieldsIndex].name) || getColNameByType(data.fields[fieldsIndex].type); - if (data.fields[fieldsIndex].desc) { - ariaLabel += escapeAttr(`
${data.fields[fieldsIndex].desc}
`); - } + let ariaLabel = escapeAttr(data.fields[fieldsIndex].name) || getColNameByType(data.fields[fieldsIndex].type); + if (data.fields[fieldsIndex].desc) { + ariaLabel += escapeAttr(`
${data.fields[fieldsIndex].desc}
`); } if (cell.valueType === "checkbox" && !data.displayFieldName) {