fix: keep canvas image labels fixed size
This commit is contained in:
parent
b17010bb35
commit
022eee7b95
@ -1772,12 +1772,11 @@ export function ImageNode({
|
|||||||
);
|
);
|
||||||
const selectedTitleStyle = useMemo<React.CSSProperties>(
|
const selectedTitleStyle = useMemo<React.CSSProperties>(
|
||||||
() => ({
|
() => ({
|
||||||
top: `${-28 * nodeContentScale}px`,
|
fontSize: 12,
|
||||||
transform: `scale(${nodeContentScale})`,
|
lineHeight: "16px",
|
||||||
transformOrigin: "bottom left",
|
top: -28,
|
||||||
width: `${100 / nodeContentScale}%`,
|
|
||||||
}),
|
}),
|
||||||
[nodeContentScale]
|
[]
|
||||||
);
|
);
|
||||||
const detailProgressLabel =
|
const detailProgressLabel =
|
||||||
typeof data.metadata?.detailProgressLabel === "string"
|
typeof data.metadata?.detailProgressLabel === "string"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user