perf(platform): 短剧创作工作台 - 拆分长篇项目接口并优化章节与素材分页

This commit is contained in:
ddCat
2026-08-30 01:32:33 +08:00
parent 40fd0c54a4
commit d89f170a08
22 changed files with 1497 additions and 222 deletions

View File

@@ -5225,20 +5225,54 @@
.workflow-chapter-current > strong { min-width: 0; flex: 1 1 auto; overflow: hidden; color: var(--foreground); font-size: var(--fs-label); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.workflow-chapter-current > em { flex: 0 0 auto; color: color-mix(in srgb, var(--foreground) 35%, transparent); font-size: var(--fs-micro); font-style: normal; font-variant-numeric: tabular-nums; }
.workflow-chapter-current > svg { flex: 0 0 auto; }
.workflow-chapter-modal-head { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); }
.workflow-chapter-modal-head > span { display: flex; min-width: 180px; align-items: center; gap: 7px; }
.workflow-chapter-modal-head > span svg { width: 16px; height: 16px; color: var(--workspace-accent); }
.workflow-chapter-modal-head > span strong { font-size: var(--fs-body); }
.workflow-chapter-modal-head > span em { color: color-mix(in srgb, var(--foreground) 42%, transparent); font-size: var(--fs-label); font-style: normal; }
.workflow-chapter-list { height: min(58vh, 520px); overflow-y: auto; padding: 6px; }
.workflow-chapter-list button { position: absolute; left: 0; top: 0; display: grid; width: 100%; grid-template-columns: 54px minmax(0, 1fr) auto 42px; align-items: center; padding: 0 10px; border-radius: var(--r-sm); color: color-mix(in srgb, var(--foreground) 58%, transparent); text-align: left; }
.workflow-chapter-list button:hover { background: var(--surface-hover); color: var(--foreground); }
.workflow-chapter-list button.is-active { background: var(--workspace-accent-soft); color: var(--foreground); }
.workflow-chapter-list button > span { color: color-mix(in srgb, var(--foreground) 36%, transparent); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
.workflow-chapter-list button > strong { overflow: hidden; font-size: var(--fs-caption); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.workflow-chapter-list button > em { color: color-mix(in srgb, var(--foreground) 40%, transparent); font-size: var(--fs-micro); font-style: normal; font-variant-numeric: tabular-nums; }
.workflow-chapter-list button > small { color: var(--workspace-accent); font-size: var(--fs-micro); text-align: right; }
.workflow-chapter-empty { display: grid; height: 100%; place-items: center; color: color-mix(in srgb, var(--foreground) 40%, transparent); font-size: var(--fs-caption); }
.workspace-modal.workspace-modal-wide.workflow-chapter-modal { width: min(1360px, calc(100vw - 48px)) !important; }
.workflow-chapter-modal-shell { display: flex; height: min(820px, 88dvh); min-height: min(680px, 88dvh); flex-direction: column; color: var(--foreground); }
.workflow-chapter-modal-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 64px 18px 24px; }
.workflow-chapter-modal-title { display: flex; min-width: 0; align-items: center; gap: 12px; }
.workflow-chapter-modal-title > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: var(--r-md); background: var(--workspace-accent-soft); color: var(--workspace-accent); }
.workflow-chapter-modal-title > span svg { width: 19px; height: 19px; }
.workflow-chapter-modal-title > div { min-width: 0; }
.workflow-chapter-modal-title strong { display: block; font-size: var(--fs-section-title); font-weight: 680; line-height: 1.25; }
.workflow-chapter-modal-title p { margin: 4px 0 0; color: color-mix(in srgb, var(--foreground) 45%, transparent); font-size: var(--fs-label); }
.workflow-chapter-modal-current { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px 5px 7px; background: color-mix(in srgb, var(--foreground) 2.5%, transparent); font-size: var(--fs-label); }
.workflow-chapter-modal-current span { border-radius: 999px; padding: 2px 6px; background: var(--workspace-accent-soft); color: var(--workspace-accent); font-size: var(--fs-micro); font-weight: 650; }
.workflow-chapter-modal-current strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.workflow-chapter-modal-search { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 24px; background: transparent; }
.workflow-chapter-modal-search .ant-input-affix-wrapper { min-width: 280px; max-width: 720px; flex: 1 1 720px; }
.workflow-chapter-modal-search > span { min-width: 72px; flex: 0 0 auto; color: color-mix(in srgb, var(--foreground) 42%, transparent); font-size: var(--fs-label); text-align: right; font-variant-numeric: tabular-nums; }
.workflow-chapter-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 18px 24px 22px; }
.workflow-chapter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.workflow-chapter-item { display: grid; min-width: 0; min-height: 54px; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 9px; background: color-mix(in srgb, var(--foreground) 1.2%, transparent); color: var(--foreground); text-align: left; transition: border-color var(--motion-instant), background-color var(--motion-instant); }
.workflow-chapter-item:hover { border-color: color-mix(in srgb, var(--workspace-accent) 35%, var(--border)); background: var(--surface-hover); }
.workflow-chapter-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.workflow-chapter-item.is-active { border-color: color-mix(in srgb, var(--workspace-accent) 42%, var(--border)); background: var(--workspace-accent-soft); }
.workflow-chapter-item-index { display: grid; width: 34px; height: 34px; place-items: center; border-radius: var(--r-sm); background: color-mix(in srgb, var(--foreground) 5%, transparent); color: color-mix(in srgb, var(--foreground) 48%, transparent); font-size: var(--fs-micro); font-weight: 650; font-variant-numeric: tabular-nums; }
.workflow-chapter-item.is-active .workflow-chapter-item-index { background: color-mix(in srgb, var(--workspace-accent) 15%, transparent); color: var(--workspace-accent); }
.workflow-chapter-item-copy { min-width: 0; }
.workflow-chapter-item-copy strong { display: block; overflow: hidden; font-size: var(--fs-caption); font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.workflow-chapter-item-copy small { display: block; margin-top: 3px; color: color-mix(in srgb, var(--foreground) 40%, transparent); font-size: var(--fs-micro); font-variant-numeric: tabular-nums; }
.workflow-chapter-item > em { border-radius: 999px; padding: 3px 7px; background: color-mix(in srgb, var(--workspace-accent) 13%, transparent); color: var(--workspace-accent); font-size: var(--fs-micro); font-style: normal; font-weight: 650; }
.workflow-chapter-item > svg { width: 14px; height: 14px; color: color-mix(in srgb, var(--foreground) 28%, transparent); }
.workflow-chapter-empty { display: flex; min-height: 220px; align-items: center; justify-content: center; flex-direction: column; color: color-mix(in srgb, var(--foreground) 40%, transparent); text-align: center; }
.workflow-chapter-empty svg { width: 24px; height: 24px; margin-bottom: 10px; opacity: .65; }
.workflow-chapter-empty strong { color: color-mix(in srgb, var(--foreground) 68%, transparent); font-size: var(--fs-caption); }
.workflow-chapter-empty span { margin-top: 4px; font-size: var(--fs-label); }
.workflow-chapter-modal-pagination { flex: 0 0 auto; border-top: 1px solid var(--border); padding: 9px 16px; background: transparent; }
.workflow-chapter-modal-pagination .app-pagination-bar { margin-top: 0; }
@media (max-width: 1100px) and (min-width: 701px) {
.workflow-chapter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
.workspace-modal.workspace-modal-wide.workflow-chapter-modal { width: calc(100vw - 24px) !important; }
.workflow-chapter-modal-shell { height: min(760px, 90dvh); min-height: 0; }
.workflow-chapter-modal-head { align-items: flex-start; padding: 18px 54px 14px 18px; }
.workflow-chapter-modal-current { display: none; }
.workflow-chapter-modal-search { align-items: stretch; flex-direction: column; padding: 12px 18px; }
.workflow-chapter-modal-search > span { min-width: 0; text-align: left; }
.workflow-chapter-list { padding: 12px 18px 14px; }
.workflow-chapter-grid { grid-template-columns: 1fr; }
.workflow-chapter-modal-pagination { padding-inline: 10px; }
}
.project-overview-focus { overflow: hidden; border-radius: var(--r-xl); background: var(--library-surface); box-shadow: none; }
.project-standard-flow { overflow: hidden; border-top: 1px solid var(--library-border); border-bottom: 1px solid var(--library-border); background: var(--library-surface); }
@@ -15616,11 +15650,12 @@ html:not(.dark) .creation-home .storyboard-workbench-bar-action:hover { backgrou
-webkit-backdrop-filter: blur(12px);
}
/* 3. 素材网格降为 4 列,窄屏断点同步收敛 */
.assets-library-page .assets-library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1600px) and (min-width: 1101px) { .assets-library-page .assets-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) and (min-width: 900px) { .assets-library-page .assets-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) and (min-width: 640px) { .assets-library-page .assets-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 3. 素材网格以 6 列为桌面基准;首格是新增素材,因此每页 35 项时正好组成 6×6 完整网格。 */
.assets-library-page .assets-library-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.assets-library-page .library-create-title { margin-top: 12px; font-size: var(--fs-body); }
.assets-library-page .library-create-meta { margin-top: 4px; font-size: var(--fs-label); }
@media (max-width: 1200px) and (min-width: 900px) { .assets-library-page .assets-library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) and (min-width: 640px) { .assets-library-page .assets-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 4. 封面浮层统一:窄屏隐藏分类徽章;浅底封面(文本/音频/模型)改用自适应玻璃浮层 */
@media (max-width: 1100px) { .assets-cover-badge.is-category { display: none; } }