diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts index 203a0684e..e3f502c6e 100644 --- a/app/src/dialog/tooltip.ts +++ b/app/src/dialog/tooltip.ts @@ -53,9 +53,9 @@ export const showTooltip = (message: string, target: Element, tooltipClass?: str if (left < 0) { left = targetRect.right; } - } else if (position === "north") { - // north: av 视图,列,多选描述 - const positionDiff = 0.5; + } else if (position?.endsWith("north")) { + // north: av 视图,列,多选描述, protyle-icon + const positionDiff = parseInt(position) || 0.5; left = Math.max(0, targetRect.left - (messageElement.clientWidth - targetRect.width) / 2); top = targetRect.top - messageElement.clientHeight - positionDiff; if (top < 0) { diff --git a/app/src/protyle/render/av/gallery/render.ts b/app/src/protyle/render/av/gallery/render.ts index 187845699..c4b33029c 100644 --- a/app/src/protyle/render/av/gallery/render.ts +++ b/app/src/protyle/render/av/gallery/render.ts @@ -104,8 +104,8 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex, }); galleryHTML += `