feat(core): 基础资产页按流程文档补完 step4(人物/场景详情+演员库+三视图绑定立绘)
人物/场景: - 卡片可点开详情弹窗:立绘大图(hover 右下角 下载/查看大图)+ 立绘版本切换 + 提示词重跑(覆盖卡片立绘,归入同角色)+ 应用到当前项目;场景详情不显示三视图 - 进入基础资产自动生成脚本提取的待生成人物/场景(带 loading),每项目一次 - 「替换」→ 演员库 replace 回填;人物区头部「演员库」入口 三视图:与「某一版立绘」1:1 绑定(metadata.triview_of=立绘组id) - 生成/重跑立绘 → 链式据该立绘 image_edit 出配套三视图(锁角色一致性) - 详情切换立绘版本 → 三视图跟着切;可据当前立绘再出多版,下方版本小图可切 - 后端 generate_person_triview + 端点 generate-triview,复用 model_library 三视图 SOP 商品三视图弹窗:记录版本、切换查看、重跑生成、采用此版本 演员库(新建 components/actor-library.tsx 覆盖层): - 平台预设演员 / 我的演员两 tab + 添加演员工作台(AI 生成 / 本地上传保存) - 替换基础资产卡:新增后端 attach-base-asset(把现有资产挂为候选并采用) 合并 dev 进来的火山真人审核绿/红盾到新的实体卡。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -574,10 +574,56 @@
|
||||
.tri-cand-card .tri-cand-foot .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); }
|
||||
.tri-empty { text-align: center; padding: 8px 0; }
|
||||
.tri-empty .tri-empty-hint { font-size: 13px; line-height: 1.6; color: var(--black-alpha-56); margin-top: 14px; }
|
||||
|
||||
/* ── 流程步骤4 · 基础资产卡生成中 loading + 转圈 ── */
|
||||
.asset-card-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--background-base); z-index: 2; }
|
||||
.asset-card-loading .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-56); letter-spacing: .04em; }
|
||||
.asset-spinner { width: 26px; height: 26px; border: 2.5px solid var(--heat-20); border-top-color: var(--heat); border-radius: 50%; animation: assetSpin .7s linear infinite; }
|
||||
.asset-spinner.sm { width: 13px; height: 13px; border-width: 2px; display: inline-block; vertical-align: -2px; }
|
||||
.asset-card-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
|
||||
.asset-card-tags .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .03em; }
|
||||
|
||||
/* ── 流程步骤4 · 人物/场景详情弹窗:立绘列 + 三视图 + hover 图标 ── */
|
||||
.ad-portrait-col { flex: 0 0 280px; min-width: 0; }
|
||||
.ad-img-wrap { position: relative; }
|
||||
.ad-main-img { aspect-ratio: 9/16; max-height: 460px; border-radius: var(--r-md); overflow: hidden; }
|
||||
.ad-tri-wrap { position: relative; }
|
||||
.ad-tri-img { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; }
|
||||
.ad-img-icons { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 6px; z-index: 3; }
|
||||
.ad-icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: rgba(0,0,0,.55); color: #fff; cursor: pointer; transition: background var(--t-base); }
|
||||
.ad-icon-btn:hover { background: var(--heat); }
|
||||
.vd-history-thumb.tri .placeholder { aspect-ratio: 16/9; }
|
||||
}
|
||||
|
||||
/* 流程步骤4 · 基础资产 loading 转圈(顶层 @keyframes 才注册) */
|
||||
@keyframes assetSpin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* 进度流逐条滚入(顶层 @keyframes 才注册) */
|
||||
@keyframes psRowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
|
||||
|
||||
/* 顶层 @keyframes:嵌套进 .pipeline-page 块内不会注册,动画不执行(product-detail 同坑) */
|
||||
@keyframes edXfadeFlash { from { opacity: 0.72; } to { opacity: 0; } }
|
||||
|
||||
/* ── 流程步骤4 · 演员库覆盖层(portal 到 body,顶层选择器才生效)── */
|
||||
.actorlib-bg { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 1020; display: flex; align-items: center; justify-content: center; padding: 40px; }
|
||||
.actorlib { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); width: min(920px, 100%); max-height: calc(100vh - 80px); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(0,0,0,.18); }
|
||||
.actorlib-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border-faint); }
|
||||
.actorlib-h h2 { font-size: 15px; font-weight: 600; }
|
||||
.actorlib-h .x { width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--black-alpha-56); border-radius: var(--r-sm); margin-left: auto; }
|
||||
.actorlib-h .x:hover { background: var(--black-alpha-08); color: var(--accent-black); }
|
||||
.actorlib-body { padding: 16px 20px 22px; overflow-y: auto; flex: 1; }
|
||||
.actorlib-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
|
||||
.actorlib-tabs { display: inline-flex; gap: 6px; }
|
||||
.al-tab { padding: 6px 12px; font-size: 13px; border: 1px solid var(--border-faint); background: var(--surface); border-radius: var(--r-sm); cursor: pointer; color: var(--black-alpha-72); transition: border-color var(--t-base), background var(--t-base), color var(--t-base); }
|
||||
.al-tab:hover { border-color: var(--heat-40); }
|
||||
.al-tab.active { border-color: var(--heat); background: var(--heat-12); color: var(--accent-black); font-weight: 500; }
|
||||
.actorlib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
|
||||
.actor-card { display: flex; flex-direction: column; gap: 6px; }
|
||||
.actor-card .actor-thumb { aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden; position: relative; cursor: pointer; border: 1px solid var(--border-faint); transition: border-color var(--t-base); }
|
||||
.actor-card .actor-thumb:hover { border-color: var(--heat); }
|
||||
.actor-card .actor-pick { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250,93,25,.0); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity var(--t-base), background var(--t-base); }
|
||||
.actor-card .actor-thumb:hover .actor-pick { opacity: 1; background: rgba(250,93,25,.42); }
|
||||
.actor-name { font-size: 12px; color: var(--black-alpha-72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.actorlib-studio-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
|
||||
.actorlib-drop { border: 1.5px dashed var(--border-strong, var(--black-alpha-32)); border-radius: var(--r-md); padding: 40px 20px; text-align: center; color: var(--black-alpha-72); cursor: pointer; transition: border-color var(--t-base), background var(--t-base); }
|
||||
.actorlib-drop:hover { border-color: var(--heat); background: var(--heat-12); }
|
||||
|
||||
Reference in New Issue
Block a user