diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index 9cb6ff2..d6ee2c8 100644 --- a/src/features/production/components/ShotProductionAssets.vue +++ b/src/features/production/components/ShotProductionAssets.vue @@ -604,7 +604,12 @@ async function inspectSpecs() { @apply relative; } .primary-keyframe-mark { - @apply absolute top-2 left-2 z-1 flex size-7 items-center justify-center bg-success text-white; + @apply absolute top-2 left-2 z-1 flex size-7 items-center justify-center; + color: var(--app-on-accent); + background: var(--app-button-primary); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 55%), + 0 2px 8px rgb(0 0 0 / 35%); } .video-record { @apply flex overflow-hidden rounded-none bg-(--app-subtle); diff --git a/tests/features/production/production.test.ts b/tests/features/production/production.test.ts index 0a79c2c..4959f95 100644 --- a/tests/features/production/production.test.ts +++ b/tests/features/production/production.test.ts @@ -49,6 +49,13 @@ describe('镜头生产数据契约', () => { ) }) + it('主首帧角标使用深色强调背景并在图片上保持清晰边界', () => { + const source = readFileSync('src/features/production/components/ShotProductionAssets.vue', 'utf8') + expect(source).toMatch( + /\.primary-keyframe-mark\s*\{[^}]*color:\s*var\(--app-on-accent\)[^}]*background:\s*var\(--app-button-primary\)[^}]*box-shadow:/ + ) + }) + it('可选尺寸必须成对留空或填写正整数', () => { expect(validOptionalSize('', '')).toBe(true) expect(validOptionalSize(1920, 1080)).toBe(true)