Skip to content

Commit

Permalink
Merge branch 'master' into feat/image-node
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefean authored Nov 16, 2024
2 parents ff3bd68 + 669cbb2 commit 4f8eaa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/render/canvas2d/entityRenderer/EntityRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ export namespace EntityRenderer {
node.rectangle.location.add(new Vector(0, node.rectangle.size.y)),
),
Renderer.FONT_SIZE_DETAILS * Camera.currentScale,
Renderer.NODE_DETAILS_WIDTH * Camera.currentScale,
Math.max(
Renderer.NODE_DETAILS_WIDTH * Camera.currentScale,
node.rectangle.size.x * Camera.currentScale,
),
StageStyleManager.currentStyle.NodeDetailsTextColor,
);
}
Expand Down

0 comments on commit 4f8eaa1

Please sign in to comment.