mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-10-18 21:47:17 +02:00
fix: keep workflow labels inside node boundaries
This commit is contained in:
1 parent
38508e79a8
commit
41365d4a4c
3 files changed
+10
-3
No files matched your search
@@ -128,3 +128,7 @@
|
||||
### 列表标签布局(表格第 12、13、43 行)
|
||||
|
||||
事实列表置顶和关联信息改为统一的可换行容器,关联漏洞 ID 增加明确标签及完整 ID 提示。资产项目标签原最大宽度 180px 超出 126px 列宽,现限制为单元格内容宽度并显示省略号及完整名称提示。使用实际样式表和代表性长名称进行本地浏览器布局检查:项目标签宽 98px,右边界位于单元格内,相邻归属文本保持可见。此检查覆盖标签布局,未作为完整应用流程验证。JavaScript 语法与 diff 检查通过。
|
||||
|
||||
### 工作流节点文字边界(表格第 27 行)
|
||||
|
||||
默认空白换行不能拆分连续中文,固定 52px 高度也无法容纳长标签。现允许按字符换行,普通节点按标签高度扩展并保留最小高度与内边距;条件节点扩大到 150px,文字超过安全宽度时省略,完整值仍在节点属性面板。使用仓库 Cytoscape 与实际节点样式在本地浏览器检查截图中的中文标签及连续长标签,确认节点内显示。相关 13 项工作流测试、语法和 diff 检查通过。换行属性依据 https://js.cytoscape.org/ 官方文档。
|
||||
@@ -29,7 +29,7 @@
|
||||
| 24 | 22 | 已经取消的任务,结束之后标签会变成成功,好像没有取消成功 | C2 与 Agent 取消终态保护已修复,done 展示保留真实状态;审批中断场景继续核对 |
|
||||
| 25 | 23 | 【WebShell 文件管理】目录树用相对路径导致点进去必报错,且报错文本被解析成假文件条目步骤 | 已修复并有针对性验证 |
|
||||
| 26 | 24 | 工作流 id 由客户端随便填、零校验 | 已修复新 ID 格式/长度、重复创建及编辑改 ID 校验 |
|
||||
| 27 | 25 | 样式问题 | 待核对 |
|
||||
| 27 | 25 | 样式问题 | 已修复:连续中文换行、普通节点随标签增高、条件节点文字宽度限制 |
|
||||
| 28 | 26 | 导入相同的工作流id的包,还能点确认,并且按钮显示导入完成。拦截的交互可以优化 | 已修复确认及结果按钮语义;跳过/保留明确显示,14 项包导入测试通过 |
|
||||
| 29 | 27 | Agent 节点 16 分 43 秒 / 118 次工具调用,全程零进度、零超时 | 待核对 |
|
||||
| 30 | 28 | 工具节点在会话容器内执行 nmap 默认参数必失败 | 当前仓库未实现,不扩展能力 |
|
||||
|
||||
@@ -266,7 +266,9 @@
|
||||
style: {
|
||||
'shape': 'round-rectangle',
|
||||
'width': 150,
|
||||
'height': 52,
|
||||
'height': 'label',
|
||||
'min-height': 32,
|
||||
'padding': 10,
|
||||
'background-color': '#1d4ed8',
|
||||
'border-width': 1,
|
||||
'border-color': '#60a5fa',
|
||||
@@ -277,13 +279,14 @@
|
||||
'text-valign': 'center',
|
||||
'text-halign': 'center',
|
||||
'text-wrap': 'wrap',
|
||||
'text-overflow-wrap': 'anywhere',
|
||||
'text-max-width': 132
|
||||
}
|
||||
},
|
||||
{ selector: 'node[type="start"]', style: { 'background-color': '#047857', 'border-color': '#34d399' } },
|
||||
{ selector: 'node[type="tool"]', style: { 'background-color': '#1d4ed8', 'border-color': '#60a5fa' } },
|
||||
{ selector: 'node[type="agent"]', style: { 'background-color': '#7c3aed', 'border-color': '#c4b5fd' } },
|
||||
{ selector: 'node[type="condition"]', style: { 'shape': 'diamond', 'background-color': '#b45309', 'border-color': '#fbbf24', 'width': 118, 'height': 86 } },
|
||||
{ selector: 'node[type="condition"]', style: { 'shape': 'diamond', 'background-color': '#b45309', 'border-color': '#fbbf24', 'width': 150, 'height': 86, 'padding': 0, 'text-wrap': 'ellipsis', 'text-max-width': 110 } },
|
||||
{ selector: 'node[type="hitl"]', style: { 'background-color': '#0f766e', 'border-color': '#5eead4' } },
|
||||
{ selector: 'node[type="output"]', style: { 'background-color': '#4338ca', 'border-color': '#a5b4fc' } },
|
||||
{ selector: 'node[type="end"]', style: { 'background-color': '#be123c', 'border-color': '#fb7185' } },
|
||||
|
||||
Reference in new issue
Block a user