From 7d8f8d3a569193da557a9ee0077c940a19ae001f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 10 Jan 2024 11:36:20 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E6=94=B9?= =?UTF-8?q?=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/block/popover.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index cc7abd45b..c0de08dce 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -23,7 +23,7 @@ export const initBlockPopover = (app: App) => { if (aElement) { let tip = aElement.getAttribute("aria-label") || aElement.getAttribute("data-inline-memo-content"); if (aElement.classList.contains("av__celltext")) { - if (aElement.offsetWidth > aElement.parentElement.clientWidth - (aElement.classList.contains("fn__flex-shrink") ? 19 : 5)) { // 只能减左边 padding,换行时字体会穿透到右侧 padding + if (aElement.offsetWidth > aElement.parentElement.clientWidth - (aElement.classList.contains("fn__flex-shrink") ? 24 : 5)) { // 只能减左边 padding,换行时字体会穿透到右侧 padding if (aElement.querySelector(".av__cellicon")) { tip = `${aElement.firstChild.textContent} → ${aElement.lastChild.textContent}`; } else {