fix: YYX测试清单16条收口——资产库弹窗层级/批次多选删/商品筛选/模特卡单卡化/垃圾桶清空等
- 资产库:批次弹窗降层(under-confirm 990<999)修单图删除确认弹窗被压;编辑态批次卡多选批删;facets 新增 products 关联商品筛选(前后端,+2 测试);视频成品 tab 补搜索/排序/分页 - 平台套图工作台:「更多」气泡与 icon 左对齐+鼠标移出自动收起;模特卡改单卡(空态「+」占位,点卡进模特库单选回填) - 工作台:删余额条,冻结/共计移至小标题行右侧(.dash-funds-mono) - 模特库:点模特卡弹详情(形象图/标签/三视图+灯箱放大) - 垃圾桶:新增「全部恢复」/「清空垃圾桶」(清空二次确认) - 视频项目页:字重/阴影等轻量对齐设计规范 - api.assetFacets 返回体逐键兜底:旧后端缺 products 键会致资产库整页 undefined.find 白屏(前后端部署时序防护,浏览器已复现验证) 验证:tsc --noEmit / vite build / apps.assets 测试全过;暂存树已独立编译验证,不依赖工作区其余在途改动 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,21 @@ body.edit-mode .library-page .asset-card.selected { border-color: var(--heat); b
|
||||
/* 多选态隐藏单卡删除(改走 bulk-bar 批量删) */
|
||||
body.edit-mode .library-page .asset-card .card-del-btn { opacity: 0 !important; pointer-events: none !important; }
|
||||
|
||||
/* 管理资产:图片成品「批次卡」多选(与平铺资产卡一致,复用 .card-check/.selected 视觉)。
|
||||
仅 .batch-card,不波及视频「素材包卡」(它仍走 .pack-card 的单包删除按钮)。 */
|
||||
.library-page .batch-card .card-check {
|
||||
position: absolute; top: 10px; left: 10px;
|
||||
width: 22px; height: 22px; border-radius: 50%;
|
||||
background: var(--surface); border: 2px solid var(--border-loud);
|
||||
display: none; place-items: center; color: var(--accent-white);
|
||||
z-index: 5; pointer-events: none;
|
||||
}
|
||||
.library-page .batch-card .card-check svg { width: 11px; height: 11px; visibility: hidden; }
|
||||
body.edit-mode .library-page .batch-card .card-check { display: grid; }
|
||||
body.edit-mode .library-page .batch-card.selected .card-check { background: var(--heat); border-color: var(--heat); }
|
||||
body.edit-mode .library-page .batch-card.selected .card-check svg { visibility: visible; }
|
||||
body.edit-mode .library-page .batch-card.selected { border-color: var(--heat); box-shadow: 0 0 0 1px var(--heat) inset; }
|
||||
|
||||
/* 吸底批量操作栏 · 仅 edit-mode 出现 */
|
||||
.lib-bulk-bar {
|
||||
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
|
||||
@@ -223,6 +238,10 @@ body.edit-mode .library-page .asset-card .card-del-btn { opacity: 0 !important;
|
||||
|
||||
/* 素材包弹窗(portal 到 body) */
|
||||
.pack-modal-bg { position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; padding: 32px; }
|
||||
/* 层级顺序(低→高):.pack-modal-bg.under-confirm 990 < .modal-bg(ConfirmModal/详情/上传)999 < toast 1000 < .np-lightbox(灯箱)9999。
|
||||
批次弹窗内单张删除会在其上弹二次确认(.modal-bg 999),故此变体降到 990,让确认弹窗可见;
|
||||
仅用于生成批次弹窗,视频素材包弹窗仍走默认 1200(其内无二次确认)。 */
|
||||
.pack-modal-bg.under-confirm { z-index: 990; }
|
||||
.pack-modal { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); width: min(900px, 92vw); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
|
||||
.pack-modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-faint); }
|
||||
.pack-modal-h h2 { font-size: 16px; font-weight: 600; color: var(--accent-black); }
|
||||
|
||||
Reference in New Issue
Block a user