From 5937c14e2f4c12319f13b940d54755cd20428a08 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 22 Mar 2024 09:09:58 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10676 --- app/src/config/image.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/config/image.ts b/app/src/config/image.ts index b503e2ee5..33b94b7f1 100644 --- a/app/src/config/image.ts +++ b/app/src/config/image.ts @@ -89,7 +89,7 @@ export const image = { event.stopPropagation(); break; } else if (type === "copy") { - writeText(target.parentElement.querySelector(".b3-list-item__text").textContent.trim()); + writeText(target.parentElement.querySelector(".b3-list-item__text").textContent.trim().replace("assets/", "")); } else if (type === "open") { /// #if !BROWSER openBy(target.parentElement.getAttribute("data-path"), "folder"); @@ -138,18 +138,14 @@ export const image = { let html = ""; let boxOpenHTML = ""; if (!isBrowser() && action) { - boxOpenHTML = ` + boxOpenHTML = ` `; } let boxClearHTML = ""; if (action) { - boxClearHTML = ` + boxClearHTML = ` -`; - } else { - boxClearHTML = ` - `; } data.forEach((item) => { @@ -157,6 +153,9 @@ export const image = { const dataPath = item.substr(idx); html += `
  • ${escapeHtml(item)} + + + ${boxOpenHTML} ${boxClearHTML}
  • `;