JS-only ComfyUI extension. Floating right-anchored panel that: - Auto-lists every LGraph group in the current workflow - Click row → animated pan+zoom to fit the group on screen - Search box at the top filters by title - Right-click row → Solo run / Center / Reset - Solo uses rgthree's Fast Groups Muter (driven via widget callbacks) when present; otherwise falls back to node.mode = NEVER on every node outside the soloed group's bounds - Keyboard 1-9 jumps to the first nine groups - Panel is draggable; position + collapsed state persisted to localStorage - Hidden when graph has < 2 groups No Python node, no drawNode hooks, no view-filtering — only canvas pan/zoom + rgthree widget poking + node.mode flag setting. None of the fragile internal hooks that comfyui-tabs depended on.
123 lines
2.6 KiB
CSS
123 lines
2.6 KiB
CSS
.cnv-panel {
|
|
position: fixed;
|
|
top: 80px;
|
|
right: 12px;
|
|
width: 240px;
|
|
max-height: calc(100vh - 120px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: rgba(15, 23, 42, 0.94);
|
|
border: 1px solid #3b82f6;
|
|
border-radius: 10px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
font: 12px/1.3 ui-sans-serif, system-ui, sans-serif;
|
|
color: #e5e7eb;
|
|
user-select: none;
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cnv-panel--dragging { opacity: 0.85; }
|
|
.cnv-panel--dragging * { cursor: grabbing !important; }
|
|
|
|
.cnv-panel__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
background: rgba(30, 41, 59, 0.95);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
cursor: grab;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
color: #60a5fa;
|
|
text-transform: uppercase;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.cnv-panel__header-grip { opacity: 0.6; }
|
|
|
|
.cnv-panel__header-title { flex: 1; }
|
|
|
|
.cnv-panel__header-count {
|
|
background: rgba(96, 165, 250, 0.18);
|
|
color: #93c5fd;
|
|
border-radius: 999px;
|
|
padding: 1px 7px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.cnv-panel__header-collapse {
|
|
background: transparent;
|
|
border: none;
|
|
color: #94a3b8;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
padding: 0 4px;
|
|
border-radius: 4px;
|
|
}
|
|
.cnv-panel__header-collapse:hover { color: #e5e7eb; background: rgba(255,255,255,0.06); }
|
|
|
|
.cnv-panel__search-wrap {
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.cnv-panel__search {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 6px;
|
|
padding: 5px 8px;
|
|
color: #e5e7eb;
|
|
font: inherit;
|
|
outline: none;
|
|
}
|
|
.cnv-panel__search:focus { border-color: #60a5fa; }
|
|
|
|
.cnv-panel__list {
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
padding: 4px;
|
|
}
|
|
|
|
.cnv-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
border-left: 3px solid var(--cnv-color, #3b82f6);
|
|
}
|
|
.cnv-row:hover { background: rgba(255, 255, 255, 0.06); }
|
|
.cnv-row--active { background: rgba(96, 165, 250, 0.14); }
|
|
|
|
.cnv-row__dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--cnv-color, #3b82f6);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cnv-row__title {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.cnv-row__shortcut {
|
|
font-size: 10px;
|
|
color: #64748b;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-radius: 3px;
|
|
padding: 1px 5px;
|
|
font-family: ui-monospace, monospace;
|
|
}
|
|
|
|
.cnv-panel--collapsed .cnv-panel__search-wrap,
|
|
.cnv-panel--collapsed .cnv-panel__list { display: none; }
|