fix: enlarge prop editor and support pinned property tips

Make the double-click editor wider with auto-growing textareas, clamp hover tips inside the viewport, and allow click-to-pin / right-click-to-unpin for presentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-17 11:02:43 +08:00
parent 4c9bd5b86f
commit 993fcaa2fd
6 changed files with 273 additions and 67 deletions

View file

@ -77,7 +77,7 @@ const zh: CanvasUi = {
card: "卡片",
topology: "拓扑",
bubbleTitle: "气泡视图:精简标题",
cardTitle: "卡片视图:单击展开全文 · 悬停属性看详情 · 双击编辑",
cardTitle: "卡片:单击属性钉住浮层 · 右键释放 · 双击编辑",
topologyTitle: "拓扑视图:路由器图标 + 链路",
unpin: "解钉",
unpinTitle: "取消钉住:让选中节点重新参与自动布局",
@ -127,7 +127,7 @@ const en: CanvasUi = {
card: "Card",
topology: "Topology",
bubbleTitle: "Bubble view: title only",
cardTitle: "Card view: click expand · hover props · double-click edit",
cardTitle: "Card: click prop to pin tip · right-click unpin · double-click edit",
topologyTitle: "Topology view: router icons + links",
unpin: "Unpin",
unpinTitle: "Unpin selected node for auto layout",