fix(canvas): 画布浮层 - 修复小地图定位并弱化卡片边界

This commit is contained in:
ddCat
2026-08-22 13:51:24 +08:00
parent 8f8b0f108d
commit c02db54635
4 changed files with 27 additions and 20 deletions

View File

@@ -291,7 +291,8 @@ export const CanvasNode = React.memo(function CanvasNode({
data-state={data.metadata?.status || (isActive ? "active" : isRelated ? "related" : "idle")}
style={{
background: hasImageContent || hasVideoContent ? "transparent" : theme.node.fill,
border: isComposerNode || isSelected ? "0" : `1px solid ${theme.node.edge}`,
// 固定占位但不绘制描边,避免聚焦切换时边框宽度变化造成白边跳动。
border: isComposerNode ? "0" : "1px solid transparent",
boxShadow: isComposerNode ? "none" : isSelected || hovered ? theme.node.hoverShadow : theme.node.shadow,
}}
onMouseDown={(event) => onMouseDown(event, data.id)}