From 680024b7927be00349daba3ab0eb65a5ab20f853 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 17:36:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8C=BA=E5=88=86=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E7=B4=A0=E6=9D=90=E5=8D=A1=E7=89=87=E5=B1=82?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ShotProductionAssets.vue | 15 ++++++++++++--- tests/features/production/production.test.ts | 3 +++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index ba0314f..740ee51 100644 --- a/src/features/production/components/ShotProductionAssets.vue +++ b/src/features/production/components/ShotProductionAssets.vue @@ -469,7 +469,7 @@ async function inspectSpecs() {

以下是当前镜头的生成输入;已生成的视频可能使用更早的素材。

-
+
@@ -480,13 +480,14 @@ async function inspectSpecs() {
+ :key="`${reference.subjectId}:${reference.imageId}`" class="video-input-card relative"> + {{ reference.subjectRef }}

{{ reference.subjectName }}

- {{ reference.subjectFormName }} · {{ reference.subjectRef }} + {{ reference.subjectFormName }}

@@ -752,6 +753,14 @@ async function inspectSpecs() { .video-input-grid .asset-image { @apply aspect-square rounded-none; } +.video-input-card { + @apply min-w-0 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-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 4033a3b..3d51ada 100644 --- a/tests/features/production/production.test.ts +++ b/tests/features/production/production.test.ts @@ -46,6 +46,9 @@ describe('镜头生产数据契约', () => { expect(source).toMatch(/\.video-input-grid,[\s\S]*?\.video-grid\s*\{[^}]*grid-template-columns:\s*repeat\(auto-fill, minmax\(180px, 220px\)\)/) 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).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\)\)\]/ )