Skip to content

fix(landscape): stop arrow labels overlapping section titles and prevent title truncation#54

Merged
dongjiang1989 merged 3 commits into
mainfrom
fix-landscape-label-overlap
Jul 14, 2026
Merged

fix(landscape): stop arrow labels overlapping section titles and prevent title truncation#54
dongjiang1989 merged 3 commits into
mainfrom
fix-landscape-label-overlap

Conversation

@FenjuFu

@FenjuFu FenjuFu commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

问题

Landscape 页(/landscape)存在两类版式冲突:

  1. 关系箭头标签与分区标题重叠:SVG 标签「触发 RPA」定位在 (5, 515),正好压在「智能体自动化 (AGENTIC-AUTOMATION)」标题栏(y≈495–525)上;「提供 API」标签同样压在「智能体引擎 (AGENT-ENGINE)」标题上。
  2. 窄列分区标题被截断:「智能体管理 (AGENT-MANAGEMENT)」在 22% 宽的第三列里放不下而折行,但标题栏固定 h-[30px] 且外层 overflow-hidden,第二行被裁掉。

修改

  • 「触发 RPA」「提供 API」两个标签对应的箭头都是垂直走向,将标签改为 rotate(-90) 竖排,放置在箭头旁列间/区间的空白带上,不再与任何标题或卡片内容相交(中英文标签均已调整)。
  • 8 个分区标题栏统一增加 whitespace-nowrap 并将字号 13px → 12px,保证最长标题在最窄列中也能单行完整显示,杜绝此类截断。

验证

  • 对全部 SVG 关系标签 × 全部分区标题做包围盒两两碰撞检测:重叠数 0。
  • 全部 8 个标题 scrollWidth == clientWidth,无横向裁切。
  • Prettier / 格式检查通过。

效果截图

「触发 RPA」竖排于箭头旁,「智能体自动化」标题完整:

trigger-rpa

「智能体管理」不再截断,「提供 API」竖排不再压「智能体引擎」标题:

provides-api

整图:

full

截图托管在 pr-assets/landscape-label-fix 分支(仅存放本 PR 配图,不合入)。

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
website Ready Ready Preview, Comment Jul 14, 2026 9:36am

FenjuFu added 2 commits July 14, 2026 16:37
…ing the agentic-automation section title

Signed-off-by: FenjuFu <fufenjupku@gmail.com>
…Is' label off the agent-engine header

Signed-off-by: FenjuFu <fufenjupku@gmail.com>
@dongjiang1989

Copy link
Copy Markdown
Contributor

Thanks @FenjuFu We need to optimize the display for mobile devices.
ef6d14e5-28a3-4afa-b446-f1d0f9cff594

@FenjuFu

FenjuFu commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. I optimized the mobile display for the landscape page by keeping a readable minimum scale on small screens, enabling horizontal scrolling for the full diagram, and improving the mobile download button layout. Could you please open it on your phone and review it here: https://website-git-fix-landsca-f05a53-dongjiang1989s-projects-ffb83d9f.vercel.app/landscape

Signed-off-by: FenjuFu <fufenjupku@gmail.com>

@dongjiang1989 dongjiang1989 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@dongjiang1989
dongjiang1989 merged commit f4f7dd4 into main Jul 14, 2026
12 checks passed
@dongjiang1989
dongjiang1989 deleted the fix-landscape-label-overlap branch July 14, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants