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>(
|
||||
() => ({
|
||||
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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user