style: 提升主首帧角标对比度

This commit is contained in:
GouJ committed 2026-09-23 11:55:43 +08:00
1 parent 158287c980
commit 7d2900c705
2 files changed
+13 -1

No files matched your search

@@ -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);
@@ -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)