视频输入首帧
@@ -479,11 +485,19 @@ async function inspectSpecs() {
diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index 740ee51..d4762fa 100644 --- a/src/features/production/components/ShotProductionAssets.vue +++ b/src/features/production/components/ShotProductionAssets.vue @@ -470,8 +470,14 @@ async function inspectSpecs() {
以下是当前镜头的生成输入;已生成的视频可能使用更早的素材。
视频输入首帧
@@ -479,11 +485,19 @@ async function inspectSpecs() {
{{ reference.subjectName }}
@@ -754,12 +768,13 @@ async function inspectSpecs() { @apply aspect-square rounded-none; } .video-input-card { - @apply min-w-0 overflow-hidden bg-(--app-control); + @apply flex min-w-0 flex-col overflow-hidden bg-(--app-control); } -.video-input-ref { - @apply pointer-events-none absolute top-2 left-2 z-1 max-w-[calc(100%-16px)] truncate px-1.5 py-1 font-mono text-[10px]; - color: var(--app-inverse); - background: rgb(0 0 0 / 68%); +.video-input-image { + @apply aspect-square w-full overflow-hidden bg-(--app-subtle); +} +.video-input-image .asset-image { + @apply h-full w-full aspect-auto; } .video-record { @apply min-w-0 overflow-hidden rounded-none bg-(--app-subtle); diff --git a/tests/features/production/production.test.ts b/tests/features/production/production.test.ts index 3d51ada..840b5fc 100644 --- a/tests/features/production/production.test.ts +++ b/tests/features/production/production.test.ts @@ -47,7 +47,9 @@ describe('镜头生产数据契约', () => { expect(source).toMatch(/\.keyframe-card \.asset-image\s*\{[^}]*aspect-square/) expect(source).toMatch(/\.production-video\s*\{[^}]*aspect-square/) expect(source).toMatch(/\.video-input-card\s*\{[^}]*bg-\(--app-control\)/) - expect(source).toContain('class="video-input-ref" :title="reference.subjectRef"') + expect(source).toMatch(/\.video-input-image\s*\{[^}]*aspect-square/) + expect(source).toContain('object-fit="cover"') + expect(source).not.toContain('class="video-input-ref"') expect(source).not.toContain('{{ reference.subjectFormName }} · {{ reference.subjectRef }}') expect(source).toMatch( /@media \(max-width: 760px\)[\s\S]*?\.video-grid\s*\{[^}]*grid-cols-\[repeat\(2,_minmax\(0,_1fr\)\)\]/