mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
feat: add node selector header with action mode indicator and instructions for improved user guidance
This commit is contained in:
@@ -29,6 +29,7 @@ html, body {
|
|||||||
:root {
|
:root {
|
||||||
--bg-color: #ffffff;
|
--bg-color: #ffffff;
|
||||||
--text-color: #333333;
|
--text-color: #333333;
|
||||||
|
--text-muted: #6c757d;
|
||||||
--card-bg: #ffffff;
|
--card-bg: #ffffff;
|
||||||
--border-color: #e0e0e0;
|
--border-color: #e0e0e0;
|
||||||
|
|
||||||
@@ -84,6 +85,7 @@ html[data-theme="light"] {
|
|||||||
[data-theme="dark"] {
|
[data-theme="dark"] {
|
||||||
--bg-color: #1a1a1a;
|
--bg-color: #1a1a1a;
|
||||||
--text-color: #e0e0e0;
|
--text-color: #e0e0e0;
|
||||||
|
--text-muted: #a0a0a0;
|
||||||
--card-bg: #2d2d2d;
|
--card-bg: #2d2d2d;
|
||||||
--border-color: #404040;
|
--border-color: #404040;
|
||||||
|
|
||||||
|
|||||||
@@ -196,3 +196,25 @@
|
|||||||
width: 16px;
|
width: 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Node Selector Header */
|
||||||
|
.node-selector-header {
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
background: var(--card-bg);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selector-action-type {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 14px;
|
||||||
|
color: var(--lora-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.selector-instruction {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
@@ -434,7 +434,15 @@ function showNodeSelector(nodes, loraSyntax, replaceMode, syntaxType) {
|
|||||||
`;
|
`;
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
|
// Add header with action mode indicator
|
||||||
|
const actionType = syntaxType === 'recipe' ? 'Recipe' : 'LoRA';
|
||||||
|
const actionMode = replaceMode ? 'Replace' : 'Append';
|
||||||
|
|
||||||
selector.innerHTML = `
|
selector.innerHTML = `
|
||||||
|
<div class="node-selector-header">
|
||||||
|
<span class="selector-action-type">${actionMode} ${actionType}</span>
|
||||||
|
<span class="selector-instruction">Select target node</span>
|
||||||
|
</div>
|
||||||
${nodeItems}
|
${nodeItems}
|
||||||
<div class="node-item send-all-item" data-action="send-all">
|
<div class="node-item send-all-item" data-action="send-all">
|
||||||
<div class="node-icon-indicator all-nodes">
|
<div class="node-icon-indicator all-nodes">
|
||||||
|
|||||||
Reference in New Issue
Block a user