mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
This commit is contained in:
parent
5e79f142ae
commit
12449b38ca
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ export const initBlockPopover = (app: App) => {
|
|||
if (aElement.classList.contains("av__cell--header")) {
|
||||
const textElement = aElement.querySelector(".av__celltext");
|
||||
const desc = aElement.getAttribute("data-desc");
|
||||
if (textElement.scrollWidth > textElement.clientWidth || desc) {
|
||||
if (textElement.scrollWidth > textElement.clientWidth + 0.5 || desc) {
|
||||
if (desc) {
|
||||
tip = `${getCellText(aElement)}<div class='ft__on-surface'>${escapeAriaLabel(desc)}</div>`;
|
||||
} else {
|
||||
|
|
@ -57,7 +57,7 @@ export const initBlockPopover = (app: App) => {
|
|||
} else if (aElement.parentElement.parentElement.classList.contains("av__views") && aElement.parentElement.classList.contains("layout-tab-bar")) {
|
||||
const textElement = aElement.querySelector(".item__text");
|
||||
const desc = aElement.getAttribute("data-desc");
|
||||
if (textElement.scrollWidth > textElement.clientWidth + 2 || desc) {
|
||||
if (textElement.scrollWidth > textElement.clientWidth + 0.5 || desc) {
|
||||
if (desc) {
|
||||
tip = `${textElement.textContent}<div class='ft__on-surface'>${escapeAriaLabel(desc)}</div>`;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue