Skip to content

feat: Graph组件高度自适应#3

Merged
xJasonShane merged 1 commit intomainfrom
trae/solo-agent-xfwP94
Apr 15, 2026
Merged

feat: Graph组件高度自适应#3
xJasonShane merged 1 commit intomainfrom
trae/solo-agent-xfwP94

Conversation

@xJasonShane
Copy link
Copy Markdown
Contributor

🎯 Changes

1. Graph组件高度自适应

  • 将图表初始化时的高度从固定值500px改为动态获取容器高度graphRef.current.clientHeight
  • 将图表更新时的高度从固定值500px改为动态获取容器高度graphRef.current.clientHeight,确保更新时保持高度自适应。

💡 Technical Highlights

  • 响应式设计: 通过动态获取容器高度,使Graph组件能够更好地适应不同尺寸的容器,提升用户体验。
  • 代码优化: 移除了硬编码的固定高度值,提高了代码的灵活性和可维护性。

Co-authored-by: traeagent <traeagent@users.noreply.github.com>
@xJasonShane xJasonShane merged commit b6a8b72 into main Apr 15, 2026
@xJasonShane xJasonShane deleted the trae/solo-agent-xfwP94 branch April 15, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant