多出口节点重设计 + 全局错误提示
- 选择/随机/战斗节点改为每出口一行、右对齐、行高25px对齐右侧端口 - 去掉重复的选项合并预览,顶部改为紧凑角标 - 未捕获错误/操作失败统一 toast 提示,便于同事发现反馈
This commit is contained in:
@ -117,6 +117,21 @@ button.mini { padding:2px 8px; font-size:12px; }
|
||||
#drawflow .drawflow-node.isstart { border-color:#7ad88a; }
|
||||
.drawflow-node .startflag { color:#7ad88a; font-weight:bold; }
|
||||
|
||||
/* 多出口节点:每出口一行,与右侧端口(间距25px、垂直居中)平齐 */
|
||||
#drawflow .kind-choice .drawflow_content_node,
|
||||
#drawflow .kind-choice_once .drawflow_content_node,
|
||||
#drawflow .kind-random .drawflow_content_node,
|
||||
#drawflow .kind-fight .drawflow_content_node { position:relative; }
|
||||
.ch-tag { position:absolute; top:-14px; left:0; right:0; font-size:11px; font-weight:bold;
|
||||
white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
||||
.ch-tag .nid { color:#6a6256; font-weight:normal; }
|
||||
#drawflow .kind-choice .ch-tag, #drawflow .kind-choice_once .ch-tag { color:#9ec0f0; }
|
||||
#drawflow .kind-fight .ch-tag { color:#d87878; }
|
||||
#drawflow .kind-random .ch-tag { color:#c0a0e0; }
|
||||
.ch-opts { margin-top:2px; } /* 微调对齐端口 top:2px */
|
||||
.ch-opt { height:25px; line-height:25px; text-align:right; font-size:12px; color:#dfe7f2;
|
||||
overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-right:3px; }
|
||||
|
||||
/* ---- toast ---- */
|
||||
#toast { position:fixed; left:50%; bottom:38px; transform:translateX(-50%) translateY(10px);
|
||||
background:#2a2316; color:#f3dca0; border:1px solid #6a5630; border-radius:7px;
|
||||
|
||||
Reference in New Issue
Block a user