From 8e402e2846618527b6de839153cebe5e5df750a8 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 18:10:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E7=B4=A0=E6=9D=90=E7=BC=A9=E7=95=A5=E5=9B=BE?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ShotProductionAssets.vue | 39 +++++++++++++------ tests/features/production/production.test.ts | 4 +- 2 files changed, 30 insertions(+), 13 deletions(-) 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.subjectRef }} - +
+
+ +

{{ 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\)\)\]/