From d93bd7cfe5e28f12c43058b0c3376c8e9d918536 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 2 Nov 2023 10:15:56 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9570 --- app/src/block/popover.ts | 6 +++++- app/src/menus/commonMenuItem.ts | 6 +++--- app/src/protyle/render/av/date.ts | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index bff6c9b75..0b3bd68ac 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -27,7 +27,11 @@ export const initBlockPopover = (app: App) => { } if (aElement.classList.contains("av__celltext")) { if (aElement.scrollWidth > aElement.parentElement.clientWidth - 11) { - tip = aElement.textContent; + if (aElement.querySelector(".av__cellicon")) { + tip = `${aElement.firstChild.textContent} ➡️ ${aElement.lastChild.textContent}` + } else { + tip = aElement.textContent; + } } else { return; } diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts index cf13b33f7..884bbc960 100644 --- a/app/src/menus/commonMenuItem.ts +++ b/app/src/menus/commonMenuItem.ts @@ -45,7 +45,7 @@ export const openWechatNotify = (nodeElement: Element) => {
${window.siyuan.languages.notifyTime}
- +
${window.siyuan.languages.wechatTip}
@@ -110,7 +110,7 @@ export const openFileWechatNotify = (protyle: IProtyle) => {
${window.siyuan.languages.notifyTime}
- +
${window.siyuan.languages.wechatTip}
@@ -162,7 +162,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I notifyHTML = ``; } else if (item.indexOf("custom-av") > -1) { hasAV = true; diff --git a/app/src/protyle/render/av/date.ts b/app/src/protyle/render/av/date.ts index c55b80f51..de582aadc 100644 --- a/app/src/protyle/render/av/date.ts +++ b/app/src/protyle/render/av/date.ts @@ -35,8 +35,8 @@ export const getDateHTML = (data: IAVTable, cellElements: HTMLElement[]) => { } return `
-
- +
+