fix: icon placement in square shaped mindmap nodes

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-11-06 15:09:38 +05:30
parent 9fdd34c55c
commit 998be0a3ce

View File

@@ -193,7 +193,7 @@ export async function insertMindmapIcon(
} }
default: { default: {
const nodeWidth = node.width || 100; const nodeWidth = node.width || 100;
iconX = -nodeWidth / 2 + iconPadding; iconX = -nodeWidth / 2;
break; break;
} }
} }