HEL-653: C 批生成台——拆分输入台/工作流选择/输入槽/记录流/检视区
- StudioGenerate 拆为 generate/ 下的 Composer、WorkflowPicker、SlotTray、ParamChip、 TakeFeed/TakeCard、Inspector、ParamsPanel、ContextBar,逻辑收进 schema/takes/context - 输入槽只按工作流 JSON 实际接线渲染;常用参数芯片 + 高级参数折叠,显示原值与已改标记 - 工作台素材/镜头卡新增「在生成台调参」,带项目上下文进入;结果不回填(后端无目标) - 共享样式(a-chip/a-seg/a-slot/a-tile 等)进 app.css;ShellPop 支持向上弹出 - /image、/video 仍是同一生成台,按用途预选默认工作流与筛选 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
Cursor
multica-agent
parent
8b03291327
commit
6f4d50f4f0
@@ -24,6 +24,8 @@
|
||||
--media-scrim: rgba(7, 9, 14, 0.65);
|
||||
--on-media: #fff;
|
||||
--on-media-line: rgba(255, 255, 255, 0.05);
|
||||
--composer-bg: linear-gradient(180deg, #0e1220, var(--bg-2));
|
||||
--composer-focus: 0 0 0 1px rgba(242, 199, 132, 0.12), 0 8px 28px rgba(0, 0, 0, 0.4);
|
||||
|
||||
/* 放映金:主按钮、当前选中、改过的参数、聚焦框、Toast 动作 (§1.2) */
|
||||
--accent: #f2c784;
|
||||
@@ -38,6 +40,8 @@
|
||||
--accent-ring: 0 0 0 1px rgba(242, 199, 132, 0.7), 0 0 22px var(--accent-glow);
|
||||
--btn-glow: 0 2px 14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
|
||||
--btn-glow-hover: 0 4px 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
|
||||
--accent-wash: linear-gradient(180deg, rgba(242, 199, 132, 0.05), transparent 40%);
|
||||
--sel-shadow: 0 0 0 1px rgba(242, 199, 132, 0.15), 0 6px 24px rgba(0, 0, 0, 0.35);
|
||||
|
||||
/* 信号色:绿=完成/已确认/通过,青=进行中/在线,红=失败/危险,
|
||||
琥珀=待确认/文件缺失/限额 (§1.3) */
|
||||
@@ -471,6 +475,270 @@ button.status-chip:active {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
/* Segmented control (§四 分段): the pressed option is lifted, never gold. */
|
||||
.a-seg {
|
||||
display: inline-flex;
|
||||
padding: 2px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--bg-2);
|
||||
}
|
||||
.a-seg > button {
|
||||
height: 26px;
|
||||
padding: 0 var(--sp-4);
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: var(--text-3);
|
||||
font-family: inherit;
|
||||
font-size: var(--fs-body-sm);
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color var(--d-state) ease,
|
||||
background-color var(--d-state) ease;
|
||||
}
|
||||
.a-seg > button[aria-pressed='true'] {
|
||||
background: var(--bg-4);
|
||||
color: var(--text);
|
||||
box-shadow: inset 0 0 0 1px var(--line-2);
|
||||
}
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.a-seg > button:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
}
|
||||
|
||||
/* Composer chips (§3.3 输入台底行): workflow / connection / parameter chips.
|
||||
Gold (`changed`) only marks a parameter that differs from the workflow value. */
|
||||
.a-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--sp-2);
|
||||
height: 28px;
|
||||
max-width: 280px;
|
||||
padding: 0 var(--sp-4);
|
||||
border: 0;
|
||||
border-radius: var(--r-pill);
|
||||
background: var(--bg-3);
|
||||
color: var(--text-2);
|
||||
font-family: inherit;
|
||||
font-size: var(--fs-aux);
|
||||
white-space: nowrap;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
transition:
|
||||
background-color var(--d-state) ease,
|
||||
color var(--d-state) ease,
|
||||
transform var(--d-press) var(--ease-out);
|
||||
}
|
||||
.a-chip:active {
|
||||
transform: scale(var(--press-scale));
|
||||
}
|
||||
.a-chip > .lbl {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.a-chip.wf {
|
||||
background: var(--bg-4);
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
box-shadow: inset 0 0 0 1px var(--line-2);
|
||||
}
|
||||
.a-chip.changed {
|
||||
color: var(--accent);
|
||||
}
|
||||
.a-chip.warn {
|
||||
color: var(--warn);
|
||||
}
|
||||
.a-chip.err {
|
||||
color: var(--err);
|
||||
}
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.a-chip:hover {
|
||||
background: var(--bg-4);
|
||||
color: var(--text);
|
||||
}
|
||||
.a-chip.changed:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
}
|
||||
|
||||
/* Composer input slots (§3.3 输入槽): 58px tiles — empty dashed / drag gold /
|
||||
uploading ring / filled with hover ✕. MediaSlot and RefImageGrid render these. */
|
||||
.a-slot {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--sp-2);
|
||||
min-width: 0;
|
||||
}
|
||||
.a-slot-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--sp-2);
|
||||
min-height: 20px;
|
||||
font-size: var(--fs-mini);
|
||||
color: var(--text-3);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.a-slot-label .req {
|
||||
color: var(--warn);
|
||||
}
|
||||
.a-slot-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--sp-2);
|
||||
}
|
||||
.a-slot-hint {
|
||||
font-size: var(--fs-mini);
|
||||
color: var(--text-3);
|
||||
}
|
||||
.a-slot-hint.err {
|
||||
color: var(--err);
|
||||
}
|
||||
.a-tile {
|
||||
position: relative;
|
||||
flex: none;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--line-2);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--bg-3);
|
||||
color: var(--text-3);
|
||||
font-family: inherit;
|
||||
box-sizing: border-box;
|
||||
transition:
|
||||
border-color var(--d-state) ease,
|
||||
background-color var(--d-state) ease,
|
||||
color var(--d-state) ease,
|
||||
transform var(--d-press) var(--ease-out);
|
||||
}
|
||||
button.a-tile {
|
||||
cursor: pointer;
|
||||
}
|
||||
button.a-tile:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
.a-tile.add {
|
||||
border-style: dashed;
|
||||
}
|
||||
.a-tile.add:active:not(:disabled) {
|
||||
transform: scale(var(--press-scale));
|
||||
}
|
||||
.a-tile.drag {
|
||||
border-color: var(--accent);
|
||||
background-color: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
.a-tile.need {
|
||||
border-color: var(--warn);
|
||||
}
|
||||
.a-tile.bad {
|
||||
border-color: var(--err);
|
||||
color: var(--err);
|
||||
}
|
||||
.a-tile-hit {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: inherit;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.a-tile-hit img,
|
||||
.a-tile-hit video {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
/* Uploads have no byte progress (fetch), so the ring spins instead of filling. */
|
||||
.a-tile-ring {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: inherit;
|
||||
background: var(--media-scrim);
|
||||
pointer-events: none;
|
||||
}
|
||||
.a-tile-ring > i {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 50%;
|
||||
background: conic-gradient(var(--accent) 0.3turn, var(--line-2) 0);
|
||||
-webkit-mask: radial-gradient(circle, transparent 9.5px, #000 10.5px);
|
||||
mask: radial-gradient(circle, transparent 9.5px, #000 10.5px);
|
||||
animation: a-tile-spin 900ms linear infinite;
|
||||
}
|
||||
@keyframes a-tile-spin {
|
||||
to {
|
||||
transform: rotate(1turn);
|
||||
}
|
||||
}
|
||||
:root[data-reduce='1'] .a-tile-ring > i {
|
||||
animation: none;
|
||||
}
|
||||
.a-tile-x {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: -6px;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--line-2);
|
||||
border-radius: 50%;
|
||||
background: var(--bg-4);
|
||||
color: var(--text-2);
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition:
|
||||
opacity var(--d-state) ease,
|
||||
color var(--d-state) ease;
|
||||
}
|
||||
.a-tile:focus-within .a-tile-x {
|
||||
opacity: 1;
|
||||
}
|
||||
.a-tile-idx {
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
top: 2px;
|
||||
font: 10px var(--mono);
|
||||
color: var(--on-media);
|
||||
text-shadow: 0 1px 2px var(--bg);
|
||||
pointer-events: none;
|
||||
}
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.a-tile:hover .a-tile-x {
|
||||
opacity: 1;
|
||||
}
|
||||
.a-tile-x:hover {
|
||||
color: var(--err);
|
||||
}
|
||||
button.a-tile.add:hover:not(:disabled) {
|
||||
border-color: var(--text-3);
|
||||
color: var(--text);
|
||||
}
|
||||
}
|
||||
@media (hover: none) {
|
||||
.a-tile-x {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Projection stage — only behind media in the inspector (§1.7). */
|
||||
.a-stage {
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user