From fcc9c0a83df82093efd3a85e8e0dc0768653ea87 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 13 Jul 2026 05:18:44 -0400 Subject: fix(admin): reduce excessive css, line up talk card inputs --- internal/admin/static/talktree.js | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'internal/admin/static/talktree.js') diff --git a/internal/admin/static/talktree.js b/internal/admin/static/talktree.js index e55653e..8e35404 100644 --- a/internal/admin/static/talktree.js +++ b/internal/admin/static/talktree.js @@ -326,8 +326,8 @@ function renderAddNodeRow() { return '
' + - '' + - '' + + '' + + '' + '
'; } @@ -368,7 +368,7 @@ h += '' + esc(key) + ''; h += '' + esc((getNodePreview(node) || '').substring(0, 60)) + ''; h += ''; - h += ''; + h += ''; h += ''; h += '
'; h += renderNodeBody(key, node, nodes); @@ -398,7 +398,7 @@ html += '' + esc(rootKey) + ''; html += '' + esc((previewText || '').substring(0, 60)) + ''; html += ''; - html += ''; + html += ''; html += '
'; html += '
'; @@ -443,14 +443,14 @@ html += '
'; html += '
' + 'Condition (for this node)' + - '' + + '' + '
'; html += '
'; html += ie_renderCond(node.condition, '', 0, '', '', {scopeToken: talkCondScope(nodeKey, null), alwaysOuterAddbar: true}); html += '
'; html += '
'; } else { - html += ''; + html += ''; } // Node messages (unchanged) @@ -466,13 +466,13 @@ html += '
'; html += '
' + 'Action (at the start of this node)' + - '
'; + '
'; html += '
'; html += talkRenderActionStep(nodeKey, null); html += '
'; html += '
'; } else { - html += ''; + html += ''; } // Goto fallback @@ -492,7 +492,7 @@ label = label || 'Auto-advance to'; return '
' + '' + esc(label) + '' + - '' + + '' + '
'; } @@ -506,13 +506,13 @@ html += '
' + '' + '' + - '' + + '' + '
'; }); html += '
' + '' + '' + - '' + + '' + '
'; html += ''; return html; @@ -536,16 +536,16 @@ if (opt.condition && typeof opt.condition === 'object' && !Array.isArray(opt.condition)) { html += 'cond'; } else { - html += ''; + html += ''; } if (opt.action) { html += 'act'; } else { - html += ''; + html += ''; } html += ''; - html += ''; + html += ''; html += ''; // Option condition detail @@ -553,7 +553,7 @@ html += '
'; html += '
'; html += '
Condition (for this option to show up)' + - '
'; + '
'; html += '
'; html += ie_renderCond(opt.condition, '', 0, '', '', {scopeToken: talkCondScope(nodeKey, idx), alwaysOuterAddbar: true}); html += '
'; @@ -567,7 +567,7 @@ html += '
'; html += '
' + 'Action (when this option is chosen)' + - '
'; + '
'; html += '
'; html += talkRenderActionStep(nodeKey, idx); html += '
'; @@ -583,8 +583,11 @@ '' + (options.length + 1) + '' + '' + '' + - '' + - '' + + '' + + '' + '
'; html += ''; -- cgit v1.2.3