fix: keep canvas image labels fixed size
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-05-26 21:08:18 +08:00
parent b17010bb35
commit 022eee7b95

View File

@ -1772,12 +1772,11 @@ export function ImageNode({
);
const selectedTitleStyle = useMemo<React.CSSProperties>(
() => ({
top: `${-28 * nodeContentScale}px`,
transform: `scale(${nodeContentScale})`,
transformOrigin: "bottom left",
width: `${100 / nodeContentScale}%`,
fontSize: 12,
lineHeight: "16px",
top: -28,
}),
[nodeContentScale]
[]
);
const detailProgressLabel =
typeof data.metadata?.detailProgressLabel === "string"