comfy-ts 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{LogsSt-U1H0mP1m.js → LogsSt-CUeo843w.js} +18 -4
- package/dist/LogsSt-CUeo843w.js.map +1 -0
- package/dist/cli.js +4 -4
- package/dist/index.cjs +123 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +96 -16
- package/dist/index.d.ts +96 -16
- package/dist/index.js +123 -12
- package/dist/index.js.map +1 -1
- package/dist/{run-serve-BeAznay5.js → run-serve-DlRBv_Nk.js} +281 -19
- package/dist/run-serve-DlRBv_Nk.js.map +1 -0
- package/dist/{run-tui-BTGjvnKk.js → run-tui-B5uxm2_l.js} +4 -4
- package/dist/{run-tui-BTGjvnKk.js.map → run-tui-B5uxm2_l.js.map} +1 -1
- package/dist/{schemaDrift-Cg39vs53.js → schemaDrift-E95iTF7E.js} +4 -1
- package/dist/{schemaDrift-Cg39vs53.js.map → schemaDrift-E95iTF7E.js.map} +1 -1
- package/dist/serve-web.js +291 -129
- package/dist/{state-C7REnHan.js → state-CUp2J1Zy.js} +122 -14
- package/dist/state-CUp2J1Zy.js.map +1 -0
- package/dist/web.d.ts +96 -16
- package/dist/web.js +123 -12
- package/dist/web.js.map +1 -1
- package/examples/comfy-cloud/sdk.d.ts +163 -163
- package/examples/rvion/10-anima-t2i.cflow.ts +48 -25
- package/examples/rvion/11-yue2-t2a.cflow.ts +105 -0
- package/examples/rvion/12-stable-audio-3-t2a.cflow.ts +78 -0
- package/examples/rvion/13-ace-step-15-xl-t2a.cflow.ts +153 -0
- package/examples/rvion/stableAudio3Prompts.ts +19 -0
- package/package.json +2 -2
- package/src/cli/serve/ServeApp.ts +157 -18
- package/src/cli/serve/byteRange.ts +48 -0
- package/src/cli/serve/run-serve.ts +12 -3
- package/src/cli/serve/web/api.ts +24 -0
- package/src/cli/serve/web/components/App.tsx +305 -156
- package/src/cli/serve/web/components/DraftTabs.tsx +167 -0
- package/src/cli/serve/web/components/Gallery.tsx +44 -19
- package/src/cli/serve/web/components/Icon.tsx +40 -0
- package/src/cli/serve/web/components/Omnibox.tsx +70 -20
- package/src/cli/serve/web/components/SideMenu.tsx +414 -0
- package/src/cli/serve/web/components/TooltipLayer.tsx +3 -2
- package/src/cli/serve/web/components/VarsForm.tsx +70 -351
- package/src/cli/serve/web/components/controls/LorasControl.tsx +24 -22
- package/src/cli/serve/web/promptEditor/promptExtensions.ts +6 -3
- package/src/cli/serve/web/state/EnhancerSt.ts +17 -2
- package/src/cli/serve/web/state/FormSt.ts +22 -2
- package/src/cli/serve/web/state/OmniboxSt.ts +3 -1
- package/src/cli/serve/web/state/WebSt.ts +172 -33
- package/src/cli/serve/web/state/draftNames.ts +16 -0
- package/src/cli/serve/web/state/draftTabs.ts +75 -0
- package/src/cli/serve/web/state/generateButton.ts +1 -1
- package/src/cli/serve/web/state/omnibox.ts +82 -18
- package/src/cli/serve/web/state/shortcuts.ts +56 -7
- package/src/cli/serve/web/styles.ts +242 -82
- package/src/cli/serve/workflowTags.ts +42 -0
- package/src/cli/serve/workspaceLabels.ts +23 -0
- package/src/cli/tui/state/DraftsSt.ts +10 -6
- package/src/coreExports.ts +1 -0
- package/src/host/ComfyHost.ts +17 -2
- package/src/host/ResilientWebsocket.ts +54 -4
- package/src/runner/ComfyExecution.ts +60 -0
- package/src/runner/ComfyWorkflow.ts +4 -0
- package/src/runner/ComfyWsApi.ts +2 -0
- package/src/runner/MediaImage.ts +2 -2
- package/src/sdk-generator/ComfyUIObjectInfoTypes.ts +5 -5
- package/src/sdk-generator/comfyui-sdk-codegen.ts +1 -1
- package/src/utils/copyName.ts +12 -0
- package/src/vars/DefinedWorkflow.ts +7 -1
- package/dist/LogsSt-U1H0mP1m.js.map +0 -1
- package/dist/run-serve-BeAznay5.js.map +0 -1
- package/dist/state-C7REnHan.js.map +0 -1
|
@@ -1,19 +1,33 @@
|
|
|
1
|
-
// the omnibox list and its
|
|
2
|
-
// one
|
|
3
|
-
//
|
|
1
|
+
// the omnibox list and its match. PURE and DOM-free, tests/serve-web-omnibox.test.ts.
|
|
2
|
+
// grouped: one workflow row, then its drafts. A query word that IS a tag keeps only the
|
|
3
|
+
// workflows carrying it, the other words fuzzy match names and tags
|
|
4
4
|
import { groupModulesByFolder, type TreeItem } from 'src/cli/serve/web/state/moduleTree.ts'
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type OmniModule = TreeItem & { host: string; drafts: string[]; tags?: string[] }
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/** a workflow row opens `draft`, its first draft */
|
|
9
|
+
export type OmniboxEntry = {
|
|
10
|
+
kind: 'workflow' | 'draft'
|
|
11
|
+
module: string
|
|
12
|
+
draft: string
|
|
13
|
+
host: string
|
|
14
|
+
folder: string
|
|
15
|
+
tags: string[]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function entryKey(e: OmniboxEntry): string {
|
|
19
|
+
return `${e.kind}:${e.module}/${e.draft}`
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function omniboxEntries(modules: readonly OmniModule[]): OmniboxEntry[] {
|
|
9
23
|
const out: OmniboxEntry[] = []
|
|
10
24
|
for (const group of groupModulesByFolder(modules)) {
|
|
11
25
|
for (const mod of group.modules) {
|
|
12
26
|
// no saved draft still opens: the server serves the spec values as `default`
|
|
13
27
|
const drafts = mod.drafts.length > 0 ? mod.drafts : ['default']
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
const base = { module: mod.module, host: mod.host, folder: group.folder, tags: mod.tags ?? [] }
|
|
29
|
+
out.push({ kind: 'workflow', draft: drafts[0] ?? 'default', ...base })
|
|
30
|
+
for (const draft of drafts) out.push({ kind: 'draft', draft, ...base })
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
return out
|
|
@@ -54,16 +68,66 @@ export function fuzzyScore(query: string, text: string): number | null {
|
|
|
54
68
|
return best
|
|
55
69
|
}
|
|
56
70
|
|
|
71
|
+
type Group = { head: OmniboxEntry; drafts: OmniboxEntry[]; ix: number }
|
|
72
|
+
|
|
73
|
+
function groupsOf(entries: readonly OmniboxEntry[]): Group[] {
|
|
74
|
+
const groups: Group[] = []
|
|
75
|
+
for (const e of entries) {
|
|
76
|
+
if (e.kind === 'workflow') groups.push({ head: e, drafts: [], ix: groups.length })
|
|
77
|
+
else groups.at(-1)?.drafts.push(e)
|
|
78
|
+
}
|
|
79
|
+
return groups
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const max = (a: number | null, b: number | null): number | null => (a == null ? b : b == null ? a : Math.max(a, b))
|
|
83
|
+
|
|
84
|
+
/** a letter scattered across the label scores ~1, one at a word start or in a run ~4 to 6.
|
|
85
|
+
* Below this average the hit is noise, and in a grouped list noise costs a whole workflow */
|
|
86
|
+
const MIN_SCORE_PER_LETTER = 2.5
|
|
87
|
+
|
|
57
88
|
export function searchOmnibox(entries: readonly OmniboxEntry[], query: string): OmniboxEntry[] {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
89
|
+
const words = query
|
|
90
|
+
.trim()
|
|
91
|
+
.toLowerCase()
|
|
92
|
+
.split(/\s+/)
|
|
93
|
+
.filter((w) => w !== '')
|
|
94
|
+
if (words.length === 0) return [...entries]
|
|
95
|
+
const known = new Set(entries.flatMap((e) => e.tags))
|
|
96
|
+
const tagWords = words.filter((w) => known.has(w))
|
|
97
|
+
const text = words.filter((w) => !known.has(w)).join('')
|
|
98
|
+
const scored: { group: Group; score: number; rows: OmniboxEntry[] }[] = []
|
|
99
|
+
for (const group of groupsOf(entries)) {
|
|
100
|
+
if (!tagWords.every((t) => group.head.tags.includes(t))) continue
|
|
101
|
+
if (text === '') {
|
|
102
|
+
scored.push({ group, score: 0, rows: [group.head, ...group.drafts] })
|
|
103
|
+
continue
|
|
104
|
+
}
|
|
105
|
+
const headText = `${group.head.folder}/${group.head.module} ${group.head.tags.join(' ')}`
|
|
106
|
+
const good = (score: number | null): number | null =>
|
|
107
|
+
score != null && score >= text.length * MIN_SCORE_PER_LETTER ? score : null
|
|
108
|
+
const headScore = good(fuzzyScore(text, headText))
|
|
109
|
+
// the draft name alone first: typing a draft name should not lose to a folder that shares letters
|
|
110
|
+
const drafts = group.drafts
|
|
111
|
+
.map((d) => {
|
|
112
|
+
const own = good(fuzzyScore(text, d.draft))
|
|
113
|
+
return {
|
|
114
|
+
d,
|
|
115
|
+
own,
|
|
116
|
+
score: max(own == null ? null : own + 2, good(fuzzyScore(text, `${headText}/${d.draft}`))),
|
|
117
|
+
}
|
|
118
|
+
})
|
|
119
|
+
.filter((x): x is { d: OmniboxEntry; own: number | null; score: number } => x.score != null)
|
|
120
|
+
const draftHits = drafts.filter((x) => x.own != null)
|
|
121
|
+
const best = max(
|
|
122
|
+
headScore,
|
|
123
|
+
drafts.reduce<number | null>((m, x) => max(m, x.score), null),
|
|
124
|
+
)
|
|
125
|
+
if (best == null) continue
|
|
126
|
+
// drafts matched by their own name are what was searched; otherwise the whole workflow
|
|
127
|
+
const shown =
|
|
128
|
+
draftHits.length > 0 ? [...draftHits].sort((a, b) => b.score - a.score).map((x) => x.d) : group.drafts
|
|
129
|
+
scored.push({ group, score: best, rows: [group.head, ...shown] })
|
|
66
130
|
}
|
|
67
|
-
scored.sort((a, b) => b.score - a.score || a.ix - b.ix)
|
|
68
|
-
return scored.
|
|
131
|
+
scored.sort((a, b) => b.score - a.score || a.group.ix - b.group.ix)
|
|
132
|
+
return scored.flatMap((s) => s.rows)
|
|
69
133
|
}
|
|
@@ -1,14 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
* focus, a prompt editor included: it is a jump, not an edit. Browser defaults they take over
|
|
3
|
-
* (print, open file) are useless on this page */
|
|
4
|
-
export type Shortcut = 'focus-prompt' | 'open-loras' | 'open-enhancer' | 'toggle-blur'
|
|
1
|
+
import { MOD_KEY } from 'src/cli/serve/web/components/modKey.ts'
|
|
5
2
|
|
|
3
|
+
/** the panel's jump keys, with ⌘ (ctrl elsewhere) and no other modifier except the ⇧ an entry
|
|
4
|
+
* names, or a bare function key. Each one works from ANY focus, a prompt editor included: it is
|
|
5
|
+
* a jump, not an edit. Browser defaults they take over (print, open file) are useless here */
|
|
6
|
+
export type Shortcut =
|
|
7
|
+
| 'focus-prompt'
|
|
8
|
+
| 'open-loras'
|
|
9
|
+
| 'open-enhancer'
|
|
10
|
+
| 'rename-draft'
|
|
11
|
+
| 'duplicate-draft'
|
|
12
|
+
| 'toggle-menu'
|
|
13
|
+
| 'toggle-blur'
|
|
14
|
+
|
|
15
|
+
/** the letter as shown after ⌘; a leading ⇧ means shift is part of the chord. A function key
|
|
16
|
+
* (F2) is pressed BARE, with no modifier: it is the rename key everywhere, and a free ⌘ letter
|
|
17
|
+
* that is not already a browser key is hard to find */
|
|
6
18
|
export const SHORTCUT_KEYS: Record<Shortcut, string> = {
|
|
7
19
|
'focus-prompt': 'P',
|
|
8
20
|
'open-loras': 'O',
|
|
9
21
|
// the same letter enhances once the enhancer is open (ENHANCER_KEYS): ⌘E, ⌘E
|
|
10
22
|
'open-enhancer': 'E',
|
|
11
|
-
'
|
|
23
|
+
// F2, as in every editor and the TUI; ⌘R stays the browser's reload
|
|
24
|
+
'rename-draft': 'F2',
|
|
25
|
+
// ⌘D: the browser's bookmark key, useless here
|
|
26
|
+
'duplicate-draft': 'D',
|
|
27
|
+
// ⌘B is the sidebar key of every editor
|
|
28
|
+
'toggle-menu': 'B',
|
|
29
|
+
'toggle-blur': 'U',
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const isFunctionKey = (k: string): boolean => /^F\d{1,2}$/.test(k)
|
|
33
|
+
|
|
34
|
+
/** the key cap a hint shows: `⌘D`, or a bare `F2` */
|
|
35
|
+
export function shortcutLabel(s: Shortcut): string {
|
|
36
|
+
const k = SHORTCUT_KEYS[s]
|
|
37
|
+
return isFunctionKey(k) ? k : `${MOD_KEY}${k}`
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** ⌘K or ⌘J (ctrl elsewhere) opens the search over every workflow and draft */
|
|
41
|
+
export function isOmniboxKey(e: {
|
|
42
|
+
key: string
|
|
43
|
+
metaKey: boolean
|
|
44
|
+
ctrlKey: boolean
|
|
45
|
+
altKey: boolean
|
|
46
|
+
shiftKey: boolean
|
|
47
|
+
}): boolean {
|
|
48
|
+
return (
|
|
49
|
+
(e.metaKey || e.ctrlKey) &&
|
|
50
|
+
!e.altKey &&
|
|
51
|
+
!e.shiftKey &&
|
|
52
|
+
(e.key.toUpperCase() === 'K' || e.key.toUpperCase() === 'J')
|
|
53
|
+
)
|
|
12
54
|
}
|
|
13
55
|
|
|
14
56
|
export function shortcutOf(e: {
|
|
@@ -18,9 +60,16 @@ export function shortcutOf(e: {
|
|
|
18
60
|
altKey: boolean
|
|
19
61
|
shiftKey: boolean
|
|
20
62
|
}): Shortcut | null {
|
|
21
|
-
|
|
63
|
+
const bare = !(e.metaKey || e.ctrlKey || e.altKey || e.shiftKey)
|
|
64
|
+
for (const [s, k] of Object.entries(SHORTCUT_KEYS) as [Shortcut, string][])
|
|
65
|
+
if (isFunctionKey(k) && bare && e.key === k) return s
|
|
66
|
+
if (!(e.metaKey || e.ctrlKey) || e.altKey) return null
|
|
22
67
|
const key = e.key.toUpperCase()
|
|
23
|
-
for (const [s, k] of Object.entries(SHORTCUT_KEYS) as [Shortcut, string][])
|
|
68
|
+
for (const [s, k] of Object.entries(SHORTCUT_KEYS) as [Shortcut, string][]) {
|
|
69
|
+
if (isFunctionKey(k)) continue
|
|
70
|
+
const shifted = k.startsWith('⇧')
|
|
71
|
+
if (shifted === e.shiftKey && k.slice(shifted ? 1 : 0) === key) return s
|
|
72
|
+
}
|
|
24
73
|
return null
|
|
25
74
|
}
|
|
26
75
|
|
|
@@ -15,6 +15,9 @@ export const STYLES = /* css */ `
|
|
|
15
15
|
--amber: #e0af68;
|
|
16
16
|
}
|
|
17
17
|
* { box-sizing: border-box; }
|
|
18
|
+
/* every scroller: a thin thumb in the theme, no track. The system scrollbar is a 15px dark band
|
|
19
|
+
under always-visible scrollbars, beside each panel's own padding and the split handle */
|
|
20
|
+
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--dim) 40%, transparent) transparent; }
|
|
18
21
|
html, body { margin: 0; height: 100%; }
|
|
19
22
|
body {
|
|
20
23
|
background: var(--bg);
|
|
@@ -31,15 +34,42 @@ body {
|
|
|
31
34
|
.modal.omni { width: min(560px, 100%); max-height: min(70vh, 100%); }
|
|
32
35
|
.omni-list { padding: 4px; }
|
|
33
36
|
.omni-row {
|
|
34
|
-
display: flex; width: 100%; gap:
|
|
35
|
-
text-align: left; border: 0; background: none; color: var(--text); padding:
|
|
37
|
+
display: flex; width: 100%; gap: 8px; align-items: center;
|
|
38
|
+
text-align: left; border: 0; background: none; color: var(--text); padding: 5px 10px;
|
|
36
39
|
border-radius: 6px; cursor: pointer; font: inherit;
|
|
37
40
|
}
|
|
38
41
|
.omni-row:hover { background: var(--panel-2); }
|
|
39
42
|
.omni-row.sel { background: var(--accent-dim); color: #fff; }
|
|
40
|
-
.omni-row.
|
|
41
|
-
.omni-
|
|
42
|
-
.omni-
|
|
43
|
+
.omni-row.workflow { margin-top: 6px; padding-top: 7px; padding-bottom: 7px; }
|
|
44
|
+
.omni-row.workflow:first-child { margin-top: 0; }
|
|
45
|
+
.omni-row.draft { padding-left: 38px; color: var(--dim); }
|
|
46
|
+
.omni-row.draft .icon { opacity: 0.6; flex-shrink: 0; }
|
|
47
|
+
.omni-row.draft.sel, .omni-row.draft:hover { color: var(--text); }
|
|
48
|
+
.omni-row.draft.open .omni-draft { color: var(--text); font-weight: 600; }
|
|
49
|
+
.omni-draft { overflow-wrap: anywhere; }
|
|
50
|
+
.omni-open { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
|
|
51
|
+
.omni-icon {
|
|
52
|
+
display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
|
|
53
|
+
width: 22px; height: 22px; border-radius: 6px; background: var(--panel-2);
|
|
54
|
+
}
|
|
55
|
+
.omni-path { min-width: 0; overflow-wrap: anywhere; }
|
|
56
|
+
.omni-folder { color: var(--dim); font-size: 12px; }
|
|
57
|
+
.omni-name { font-weight: 600; }
|
|
58
|
+
.omni-tags { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
|
|
59
|
+
.omni-tag {
|
|
60
|
+
font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 999px;
|
|
61
|
+
color: var(--dim); border: 1px solid var(--border);
|
|
62
|
+
}
|
|
63
|
+
.omni-host { color: var(--dim); font-size: 11px; white-space: nowrap; margin-left: 4px; opacity: 0.7; }
|
|
64
|
+
.tint-image { color: var(--accent); }
|
|
65
|
+
.tint-audio { color: var(--green); }
|
|
66
|
+
.tint-video { color: var(--amber); }
|
|
67
|
+
.tint-text, .tint-llm { color: #bb9af7; }
|
|
68
|
+
.tint-edit { color: var(--red); }
|
|
69
|
+
.tint-workflow { color: var(--dim); }
|
|
70
|
+
.omni-tag[class*='tint-'] { background: color-mix(in srgb, currentColor 12%, transparent); border-color: color-mix(in srgb, currentColor 35%, transparent); }
|
|
71
|
+
/* a chip the query named: the filter that is on */
|
|
72
|
+
.omni-tag.hit { border-color: currentColor; background: color-mix(in srgb, currentColor 24%, transparent); font-weight: 600; }
|
|
43
73
|
.omni-errors { margin: 10px 6px 4px; padding: 8px; border: 1px solid var(--red); border-radius: 6px; font-size: 12px; }
|
|
44
74
|
.omni-errors .section-title { margin-top: 0; color: var(--red); }
|
|
45
75
|
.omni-errors .file { color: var(--dim); word-break: break-all; }
|
|
@@ -56,41 +86,128 @@ button.link.load-errors { color: var(--red); font-size: 11px; }
|
|
|
56
86
|
.main h2 { font-size: 14px; margin: 0; color: var(--dim); font-weight: 500; }
|
|
57
87
|
.main h2 b { color: var(--text); }
|
|
58
88
|
|
|
59
|
-
/* the TUI header on the web
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
.
|
|
83
|
-
.
|
|
84
|
-
.
|
|
85
|
-
.
|
|
86
|
-
.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.
|
|
89
|
+
/* the menu column: the TUI header on the web, one labelled card per scope, stacked */
|
|
90
|
+
.menu-layout { flex: 1; min-width: 0; height: 100%; }
|
|
91
|
+
.menu-panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--panel); border-right: 1px solid var(--border); }
|
|
92
|
+
.menu-main { height: 100%; display: flex; min-width: 0; }
|
|
93
|
+
.menu-main > .main { height: 100%; }
|
|
94
|
+
/* the open drafts as tabs over the work area. The body below takes the rest: the panel group
|
|
95
|
+
inside it sets its own height to 100%, which must mean the room under the bar */
|
|
96
|
+
.tabs-col { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; }
|
|
97
|
+
.tabs-body { flex: 1; min-height: 0; display: flex; }
|
|
98
|
+
.tabs-body > .main { height: 100%; }
|
|
99
|
+
.draft-tabs {
|
|
100
|
+
display: flex; gap: 0; padding: 4px 8px 0; overflow-x: auto; flex-shrink: 0;
|
|
101
|
+
background: var(--panel); border-bottom: 1px solid var(--border);
|
|
102
|
+
}
|
|
103
|
+
.draft-tab {
|
|
104
|
+
display: inline-flex; align-items: center; gap: 3px; max-width: 220px; padding: 3px 4px 3px 9px;
|
|
105
|
+
font-size: 13px; color: var(--dim); cursor: pointer; user-select: none; white-space: nowrap;
|
|
106
|
+
border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: -1px;
|
|
107
|
+
position: relative;
|
|
108
|
+
}
|
|
109
|
+
/* neighbours share one border line, the open tab draws its own on top */
|
|
110
|
+
.draft-tab + .draft-tab { margin-left: -1px; }
|
|
111
|
+
.draft-tab.on { z-index: 1; }
|
|
112
|
+
.draft-tab:hover { color: var(--text); background: var(--panel-2); }
|
|
113
|
+
.draft-tab.on { color: var(--text); background: var(--bg); border-color: var(--border); }
|
|
114
|
+
.draft-tab-name { overflow: hidden; text-overflow: ellipsis; }
|
|
115
|
+
.draft-tab-wf { color: var(--dim); font-size: 11px; }
|
|
116
|
+
.draft-tab button.draft-tab-close {
|
|
117
|
+
border: 0; background: none; padding: 1px; border-radius: 4px; color: inherit; opacity: 0;
|
|
118
|
+
display: inline-flex; align-items: center;
|
|
119
|
+
}
|
|
120
|
+
.draft-tab:hover button.draft-tab-close, .draft-tab.on button.draft-tab-close { opacity: 0.7; }
|
|
121
|
+
.draft-tab button.draft-tab-close:hover { opacity: 1; background: var(--border); }
|
|
122
|
+
/* the open tab's actions: its name to edit, then the menu's own draft rows */
|
|
123
|
+
.tab-menu {
|
|
124
|
+
z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 6px;
|
|
125
|
+
background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
126
|
+
}
|
|
127
|
+
.tab-menu input.head-input { width: 100%; margin-bottom: 4px; }
|
|
128
|
+
.tab-menu .menu-action.danger:hover { color: var(--red); }
|
|
129
|
+
.menu-col { padding: 0 0 14px; }
|
|
130
|
+
/* ☰ + the name: the same height as the rail's first icon, so folding never moves it */
|
|
131
|
+
.menu-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-bottom: 1px solid var(--border); }
|
|
132
|
+
.menu-brand { font-weight: 700; letter-spacing: 0.01em; }
|
|
133
|
+
.menu-head-key { margin-left: auto; }
|
|
134
|
+
/* a full-row action (duplicate, new): reads as an entry of the list, its key at the end */
|
|
135
|
+
.menu-action { color: var(--dim); font-size: 13px; }
|
|
136
|
+
.menu-action:hover { color: var(--text); }
|
|
137
|
+
.menu-action .kbd-hint { margin-left: auto; }
|
|
138
|
+
/* the preview placements: equal tiles, icon over its word, wrapping when the menu is narrow */
|
|
139
|
+
.layout-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 4px; padding: 2px 4px; }
|
|
140
|
+
.layout-tile {
|
|
141
|
+
display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; min-width: 0;
|
|
142
|
+
border: 1px solid var(--border); border-radius: 7px; background: none; color: var(--dim); font-size: 11px; cursor: pointer;
|
|
143
|
+
}
|
|
144
|
+
.layout-tile .icon + * { margin-left: 0; }
|
|
145
|
+
.layout-tile:hover { color: var(--text); background: var(--panel-2); }
|
|
146
|
+
.layout-tile.sel { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); font-weight: 600; }
|
|
147
|
+
.menu-sections { display: flex; flex-direction: column; }
|
|
148
|
+
.menu-section { padding: 10px 10px 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
|
|
149
|
+
.menu-title {
|
|
150
|
+
display: flex; align-items: center; justify-content: space-between; min-height: 24px; padding: 0 4px;
|
|
151
|
+
color: var(--dim); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
|
|
152
|
+
}
|
|
153
|
+
.menu-title-actions { display: flex; align-items: center; gap: 2px; text-transform: none; letter-spacing: 0; }
|
|
154
|
+
.menu-title-actions .kbd-hint { font-size: 10px; }
|
|
155
|
+
/* a row is a line of the list: icon, value, and its own actions at the end */
|
|
156
|
+
.menu-row {
|
|
157
|
+
display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 4px; border-radius: 6px;
|
|
158
|
+
width: 100%; border: 0; background: none; color: var(--text); font: inherit; text-align: left; min-width: 0;
|
|
159
|
+
}
|
|
160
|
+
.menu-row > .icon { color: var(--dim); flex-shrink: 0; }
|
|
161
|
+
button.menu-row { cursor: pointer; }
|
|
162
|
+
button.menu-row:hover { background: var(--panel-2); }
|
|
163
|
+
.menu-value { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
|
|
164
|
+
.workflow-row .menu-value { color: var(--amber); }
|
|
165
|
+
.menu-value.host { color: var(--green); }
|
|
166
|
+
.menu-select {
|
|
167
|
+
flex: 1; min-width: 0; padding: 2px 4px; font: inherit; font-weight: 600;
|
|
168
|
+
background: transparent; border: 1px solid transparent; border-radius: 5px;
|
|
169
|
+
}
|
|
170
|
+
.menu-select:hover, .menu-select:focus { border-color: var(--border); background: var(--bg); }
|
|
171
|
+
.menu-select.draft { color: var(--accent); }
|
|
172
|
+
.menu-select.host { color: var(--green); }
|
|
173
|
+
.menu-row-actions { margin-left: auto; display: flex; gap: 2px; flex-shrink: 0; }
|
|
174
|
+
/* quiet word buttons under a row: borderless until hovered */
|
|
175
|
+
.menu-buttons { flex-wrap: wrap; gap: 2px; padding-left: 26px; }
|
|
176
|
+
.menu-buttons > button {
|
|
177
|
+
display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px;
|
|
178
|
+
border: 1px solid transparent; border-radius: 6px; background: none; color: var(--dim); font-size: 12.5px; cursor: pointer;
|
|
179
|
+
}
|
|
180
|
+
.menu-buttons > button:hover { color: var(--text); background: var(--panel-2); border-color: var(--border); }
|
|
181
|
+
.menu-buttons > button.sel { color: var(--accent); background: var(--accent-dim); }
|
|
182
|
+
.menu-buttons > button.quiet-danger:hover { color: var(--red); border-color: var(--red); }
|
|
183
|
+
/* the draft file state in the draft title: a grey check, or a small ring turning while unsaved */
|
|
184
|
+
.save-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--dim); }
|
|
185
|
+
.save-mark .spinner {
|
|
186
|
+
width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--dim); border-top-color: transparent;
|
|
187
|
+
animation: spin 0.7s linear infinite;
|
|
188
|
+
}
|
|
189
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
190
|
+
.menu-title-actions .head-icon.dirty { color: var(--amber); }
|
|
191
|
+
.menu-note { margin-left: auto; font-size: 11px; color: var(--dim); }
|
|
192
|
+
.menu-note.error { color: var(--red); font-weight: 600; }
|
|
193
|
+
.menu-error { font-size: 12px; padding: 4px; }
|
|
194
|
+
.path-row .path-text { color: var(--text); }
|
|
195
|
+
.menu-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 10px; }
|
|
196
|
+
.menu-rail > button:first-child { height: 44px; }
|
|
197
|
+
.path-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
|
|
198
|
+
/* phones: the menu is a drawer, a slim bar names where you are */
|
|
199
|
+
.mobile-bar {
|
|
200
|
+
display: flex; align-items: center; gap: 8px; padding: 6px 10px;
|
|
201
|
+
border-bottom: 1px solid var(--border); background: var(--panel);
|
|
202
|
+
}
|
|
203
|
+
.mobile-where { border: 0; background: none; font: inherit; color: var(--text); padding: 0; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
204
|
+
.mobile-draft { color: var(--accent); }
|
|
205
|
+
.mobile-workflow { color: var(--amber); }
|
|
206
|
+
.drawer-overlay { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.5); }
|
|
207
|
+
.drawer {
|
|
208
|
+
position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); overflow-y: auto;
|
|
209
|
+
background: var(--panel); border-right: 1px solid var(--border); padding: 0 0 16px;
|
|
210
|
+
}
|
|
94
211
|
button.danger { color: var(--dim); }
|
|
95
212
|
/* a button that asks to be pressed: the host changed under the panel */
|
|
96
213
|
button.attention { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); font-size: 11px; white-space: nowrap; }
|
|
@@ -101,7 +218,17 @@ button.danger:hover { color: var(--red); border-color: var(--red); }
|
|
|
101
218
|
rows — a per-row grid would give every row its own width. The 150px track is the
|
|
102
219
|
pre-subgrid fallback, kept first so an old engine still gets aligned columns */
|
|
103
220
|
/* the form needs air under the head boxes: the first var sat flush against them */
|
|
104
|
-
.vars { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin-top: 14px; position: relative; }
|
|
221
|
+
.vars { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin-top: 14px; position: relative; padding-left: 22px; }
|
|
222
|
+
/* each row's reset, in the form's left gutter (the padding above): borderless until
|
|
223
|
+
hovered, out of the flow so it never moves a label */
|
|
224
|
+
.var-row { position: relative; }
|
|
225
|
+
button.var-reset {
|
|
226
|
+
position: absolute; left: -20px; top: 6px; width: 20px; height: 20px; padding: 0;
|
|
227
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
228
|
+
border: 1px solid transparent; border-radius: 5px; background: none; color: var(--dim); cursor: pointer;
|
|
229
|
+
}
|
|
230
|
+
button.var-reset:hover:not(:disabled) { border-color: var(--border); color: var(--text); background: var(--panel-2); }
|
|
231
|
+
button.var-reset:disabled { opacity: 0.25; cursor: default; }
|
|
105
232
|
/* the label column's edge: a thin strip you drag, lit on hover */
|
|
106
233
|
.label-resizer {
|
|
107
234
|
position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; z-index: 5;
|
|
@@ -274,6 +401,7 @@ button.primary {
|
|
|
274
401
|
}
|
|
275
402
|
/* running: the fill sweeps across a dim track, the text stays, so nothing beside it moves */
|
|
276
403
|
button.primary.running { color: #fff; border-color: var(--accent); }
|
|
404
|
+
/* the run button: one short word, so a compact button */
|
|
277
405
|
.kbd-hint {
|
|
278
406
|
font-size: 10px; opacity: 0.65; border: 1px solid currentColor; border-radius: 4px;
|
|
279
407
|
padding: 0 4px; line-height: 1.4;
|
|
@@ -292,26 +420,29 @@ button.mini:hover { color: var(--text); }
|
|
|
292
420
|
.prompt-actions { gap: 6px; margin-top: 4px; }
|
|
293
421
|
button.accent:hover { background: var(--accent-dim); color: #fff; }
|
|
294
422
|
|
|
295
|
-
/*
|
|
296
|
-
|
|
297
|
-
.run-
|
|
298
|
-
.
|
|
299
|
-
.run-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
.run-
|
|
306
|
-
.run-
|
|
423
|
+
/* two rows, three columns: Run / queue / images on top, the three buttons that end something
|
|
424
|
+
underneath, one per column, all the same size */
|
|
425
|
+
.run-bar { display: inline-flex; align-items: stretch; gap: 8px; flex-shrink: 0; flex-wrap: nowrap; }
|
|
426
|
+
/* inside the group, .btn-group's segment colors come later and would repaint Run: restate it */
|
|
427
|
+
.run-split button.primary, .run-split button.primary:hover {
|
|
428
|
+
padding: 5px 14px; font-size: 13px; background: var(--accent); border-color: var(--accent); color: #0d1117;
|
|
429
|
+
}
|
|
430
|
+
.run-split button.primary.running { color: #fff; }
|
|
431
|
+
.run-split button.primary + button { border-left-color: var(--accent); }
|
|
432
|
+
/* the stop square: grey and inert when nothing runs, red while a run can be stopped */
|
|
433
|
+
.run-split button.run-stop { padding: 5px 9px; color: var(--dim); display: inline-flex; align-items: center; }
|
|
434
|
+
.run-split button.run-stop:disabled { opacity: 0.45; }
|
|
435
|
+
.run-split button.run-stop.live { color: var(--red); }
|
|
436
|
+
.run-split button.run-stop.live:hover { color: #fff; background: var(--red); border-color: var(--red); }
|
|
437
|
+
/* the count a clear button acts on: tabular and at a fixed width, so 9 → 10 never moves the row */
|
|
438
|
+
.run-num { display: inline-block; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
|
|
439
|
+
button.run-end { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; }
|
|
440
|
+
button.run-end:not(:disabled):hover { color: #fff; background: var(--red); border-color: var(--red); }
|
|
441
|
+
button.run-end:disabled { opacity: 0.45; cursor: default; }
|
|
307
442
|
.run-error { flex: 1; min-width: 0; height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red); font-size: 12px; }
|
|
308
443
|
input[type='range'].setting-range:disabled { opacity: 0.3; }
|
|
309
444
|
.live-preview-error { margin-left: 4px; }
|
|
310
445
|
.live-preview-line { min-height: 1.35em; }
|
|
311
|
-
.run-chip {
|
|
312
|
-
display: inline-flex; gap: 3px; align-items: center; color: var(--dim); font-size: 12px;
|
|
313
|
-
border: 1px solid var(--border); border-radius: 999px; padding: 1px 3px 1px 8px; flex-shrink: 0;
|
|
314
|
-
}
|
|
315
446
|
.runbar {
|
|
316
447
|
position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center;
|
|
317
448
|
background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
|
|
@@ -319,9 +450,6 @@ input[type='range'].setting-range:disabled { opacity: 0.3; }
|
|
|
319
450
|
}
|
|
320
451
|
/* the changed-vars broom: FAR RIGHT of the draft box line and outside the button group, so
|
|
321
452
|
appearing and disappearing with the dirty count never shifts the buttons beside it */
|
|
322
|
-
.head-box .head-right { margin-left: auto; padding: 2px 5px; }
|
|
323
|
-
.head-box button.dirty { color: var(--amber); }
|
|
324
|
-
.head-box button.dirty:hover { color: var(--red); border-color: var(--red); }
|
|
325
453
|
.runbar .error { color: var(--red); font-size: 12px; white-space: pre-wrap; }
|
|
326
454
|
.pulse { animation: pulse 1.2s ease-in-out infinite; }
|
|
327
455
|
@keyframes pulse { 50% { opacity: 0.45; } }
|
|
@@ -340,14 +468,17 @@ input[type='range'].setting-range:disabled { opacity: 0.3; }
|
|
|
340
468
|
.host-action.danger:hover { color: var(--red); border-color: var(--red); }
|
|
341
469
|
.lightbox-bar .host-action { padding: 4px 10px; }
|
|
342
470
|
.run-card img { max-width: min(320px, 100%); max-height: 320px; border-radius: 6px; display: block; }
|
|
343
|
-
/*
|
|
344
|
-
run
|
|
345
|
-
.gallery.
|
|
346
|
-
.gallery.
|
|
347
|
-
.gallery.
|
|
348
|
-
.gallery.
|
|
349
|
-
.gallery.
|
|
471
|
+
/* columns: equal shares of the panel width (the count is inline), every image as wide as its
|
|
472
|
+
column. A result without an image, and the run card of a graph without one, take a full row */
|
|
473
|
+
.gallery.by-cols { display: grid; align-items: start; }
|
|
474
|
+
.gallery.by-cols > .run-card { grid-column: 1 / -1; min-width: 0; }
|
|
475
|
+
.gallery.by-cols > .run-card.has-image, .gallery.by-cols > .run-card.cell { grid-column: auto; }
|
|
476
|
+
.gallery.by-cols .imgs { flex-direction: column; }
|
|
477
|
+
.gallery.by-cols .img-cell, .gallery.by-cols .img-button { width: 100%; }
|
|
478
|
+
.gallery.by-cols .run-card img { width: 100%; height: auto; max-width: 100%; max-height: none; }
|
|
350
479
|
.run-card .noimg { color: var(--dim); font-style: italic; }
|
|
480
|
+
.audio-cell { display: flex; flex-direction: column; gap: 4px; width: min(100%, 480px); }
|
|
481
|
+
.audio-cell audio { width: 100%; }
|
|
351
482
|
.run-card.running { border-color: var(--accent-dim); }
|
|
352
483
|
/* what the host is on, in the node's own unit — the live signal of a text run, which has
|
|
353
484
|
neither a latent frame nor an image to show */
|
|
@@ -383,6 +514,12 @@ input[type='range'].setting-range:disabled { opacity: 0.3; }
|
|
|
383
514
|
font-size: 11px; line-height: 1.4; cursor: pointer;
|
|
384
515
|
}
|
|
385
516
|
.live-preview:hover { border-color: var(--accent-dim); }
|
|
517
|
+
.live-preview-row { display: flex; gap: 4px; align-items: stretch; min-width: 0; }
|
|
518
|
+
button.live-preview-copy {
|
|
519
|
+
flex-shrink: 0; display: inline-flex; align-items: center; padding: 0 8px; color: var(--dim);
|
|
520
|
+
background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
|
|
521
|
+
}
|
|
522
|
+
button.live-preview-copy:not(:disabled):hover { color: var(--text); border-color: var(--accent-dim); }
|
|
386
523
|
.live-preview-name { flex-shrink: 0; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
|
|
387
524
|
.live-preview-lines { display: flex; flex-direction: column; min-width: 0; flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
388
525
|
.live-preview-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
|
|
@@ -708,11 +845,20 @@ button.enh-big { font-size: 14px; padding: 8px 18px; }
|
|
|
708
845
|
.corner-run-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--dim); white-space: nowrap; }
|
|
709
846
|
.corner-run-meta .run-meta-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
710
847
|
/* blur mode: every result, the latent frame included, stays blurred until the pointer is on it */
|
|
711
|
-
.gallery.blur img { filter: blur(22px); transition: filter 0.12s; }
|
|
848
|
+
.gallery.blur img { filter: blur(22px); transition: filter 0.12s, transform 0.12s; }
|
|
712
849
|
.gallery.blur img:hover, .gallery.blur .img-cell:hover img, .gallery.blur button:hover img { filter: none; }
|
|
713
|
-
/*
|
|
714
|
-
|
|
715
|
-
.
|
|
850
|
+
/* the blur stays inside the image: clipped by its button, and the image scaled up a little while
|
|
851
|
+
blurred, else the clip shows the blur fading to transparent along every edge */
|
|
852
|
+
.gallery.blur .img-button { position: relative; overflow: hidden; border-radius: 6px; }
|
|
853
|
+
.gallery.blur .img-button img { transform: scale(1.12); }
|
|
854
|
+
.gallery.blur .img-button:hover img { transform: none; }
|
|
855
|
+
.blur-hint {
|
|
856
|
+
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
|
|
857
|
+
font-size: 13px; padding: 2px 8px; color: #fff; opacity: 0.85; background: rgba(0, 0, 0, 0.35);
|
|
858
|
+
}
|
|
859
|
+
.img-button:hover .blur-hint { display: none; }
|
|
860
|
+
/* bigger control buttons: the preview head and the menu column, one size with the form rows */
|
|
861
|
+
.results-head .btn-group > button, .menu-section .btn-group > button, .menu-panel button.head-icon, .drawer button.head-icon {
|
|
716
862
|
height: 28px; min-width: 28px; font-size: 13px;
|
|
717
863
|
display: inline-flex; align-items: center; justify-content: center; gap: 4px;
|
|
718
864
|
}
|
|
@@ -720,11 +866,33 @@ button.enh-big { font-size: 14px; padding: 8px 18px; }
|
|
|
720
866
|
results never read as one page. Placement rules below refine it (the corner card is tighter) */
|
|
721
867
|
.results-col { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px 10px; }
|
|
722
868
|
.results-col .gallery { margin-top: 0; }
|
|
723
|
-
|
|
869
|
+
/* on the preview surface a result is its image, title and buttons, with no frame of its own */
|
|
870
|
+
.results-col .run-card { background: none; border: 0; border-radius: 0; padding: 0; }
|
|
871
|
+
/* a result with an image is only its image: the title and delete show over its top edge on
|
|
872
|
+
hover. Out of the flow, the title no longer sizes the card, so grid cards wrap at the image
|
|
873
|
+
width. A screen with no hover keeps the line visible */
|
|
874
|
+
.gallery.by-cols .run-card.has-image { position: relative; }
|
|
875
|
+
.gallery.by-cols .run-card.has-image > .meta {
|
|
876
|
+
position: absolute; top: 0; left: 0; right: 0; z-index: 2; margin: 0; padding: 6px 8px 14px;
|
|
877
|
+
align-items: flex-start; color: #fff; border-radius: 6px 6px 0 0;
|
|
878
|
+
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
|
|
879
|
+
opacity: 0; pointer-events: none; transition: opacity 0.12s;
|
|
880
|
+
}
|
|
881
|
+
.gallery .run-card.has-image > .meta .meta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
882
|
+
.gallery .run-card.has-image:hover > .meta { opacity: 1; pointer-events: auto; }
|
|
883
|
+
.gallery .run-card.has-image > .meta button.link { color: #fff; }
|
|
884
|
+
@media (hover: none) {
|
|
885
|
+
.gallery .run-card.has-image > .meta { opacity: 1; pointer-events: auto; }
|
|
886
|
+
}
|
|
724
887
|
.work.layout-bottom .results-col { margin-top: 16px; }
|
|
725
888
|
/* the panel's own controls sit on top of it */
|
|
726
889
|
.head-group-labeled { display: flex; flex-direction: column; gap: 2px; }
|
|
727
|
-
|
|
890
|
+
/* the columns count: one button tall, the word inside, like the blur toggle beside it */
|
|
891
|
+
.cols-field {
|
|
892
|
+
display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; font-size: 13px;
|
|
893
|
+
border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--dim);
|
|
894
|
+
}
|
|
895
|
+
.cols-field input { width: 3.2em; padding: 1px 4px; font-size: 13px; text-align: center; }
|
|
728
896
|
.head-row { gap: 6px; flex-wrap: nowrap; }
|
|
729
897
|
.group-caption { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; padding-left: 2px; }
|
|
730
898
|
.results-head {
|
|
@@ -836,18 +1004,10 @@ button.enh-big { font-size: 14px; padding: 8px 18px; }
|
|
|
836
1004
|
.field-height button { display: inline-flex; align-items: center; justify-content: center; }
|
|
837
1005
|
/* a one-character mode button still needs a target: = + ? are narrow glyphs */
|
|
838
1006
|
.btn-group.field-height button { min-width: 28px; }
|
|
839
|
-
/* the draft line: rename, the name, delete, on one line around the name they act on */
|
|
840
|
-
.draft-line { display: flex; gap: 4px; align-items: center; min-width: 0; }
|
|
841
|
-
.draft-line select { flex: 1; min-width: 0; }
|
|
842
1007
|
button.head-icon { padding: 2px 5px; background: none; border-color: transparent; color: var(--dim); }
|
|
843
1008
|
button.head-icon:hover { border-color: var(--border); color: var(--text); }
|
|
844
1009
|
button.head-icon.danger:hover { color: var(--red); border-color: var(--red); }
|
|
845
|
-
.head-input { padding: 2px 6px; font-size: 13px; font-weight: 600; color: var(--accent);
|
|
846
|
-
.head-label .save-state { color: var(--dim); font-weight: 400; margin-left: 4px; }
|
|
847
|
-
.head-label .save-state.error { color: var(--red); }
|
|
848
|
-
/* every head box is two lines: what you are on, then what you can do to it */
|
|
849
|
-
.head-box { display: flex; flex-direction: column; gap: 5px; }
|
|
850
|
-
.head-line { display: flex; gap: 8px; align-items: center; min-height: 24px; }
|
|
1010
|
+
.head-input { flex: 1; min-width: 0; padding: 2px 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
|
|
851
1011
|
|
|
852
1012
|
/* the lora controls sit above the palette, left aligned */
|
|
853
1013
|
.lora-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
|