perf(short-drama-agent-front): 优化制作工作台交互与移动端布局
This commit is contained in:
1 parent
b5eaed3981
commit
54a381ebd3
37 files changed
+1217
-426
No files matched your search
@@ -46,31 +46,23 @@ describe('镜头生产数据契约', () => {
|
||||
expect(source).toMatch(/\.generation-input-mode-label\s*\{[^}]*mb-\[7px\][^}]*text-xs/)
|
||||
})
|
||||
|
||||
it('主首帧、素材引用和视频使用固定上限的正方形网格,不随少量记录撑满整行', () => {
|
||||
it('主首帧与主视频共用固定宽度,素材引用保留正方形网格', () => {
|
||||
const source = readFileSync('src/features/production/components/ShotProductionAssets.vue', 'utf8')
|
||||
expect(source).toContain('v-if="videos.length" class="video-grid mt-4"')
|
||||
expect(source).toContain('v-if="currentVideo" class="video-grid mt-4"')
|
||||
expect(source).toMatch(/\.keyframe-grid,\s*\.video-grid\s*\{[^}]*max-w-\[260px\][^}]*grid-cols-1/)
|
||||
expect(source).toMatch(
|
||||
/\.keyframe-grid\s*\{[^}]*grid-template-columns:\s*repeat\(auto-fill, minmax\(180px, 220px\)\)/
|
||||
)
|
||||
expect(source).toMatch(
|
||||
/\.video-input-grid,[\s\S]*?\.video-grid\s*\{[^}]*grid-template-columns:\s*repeat\(auto-fill, minmax\(180px, 220px\)\)/
|
||||
/\.video-input-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/)
|
||||
const videoCard = readFileSync('src/features/production/components/VideoCard.vue', 'utf8')
|
||||
expect(videoCard).toContain('class="block aspect-square w-full bg-[#080808] object-contain"')
|
||||
expect(source).toMatch(/\.video-input-card\s*\{[^}]*bg-\(--app-control\)/)
|
||||
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\)\)\]/
|
||||
)
|
||||
})
|
||||
|
||||
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:/
|
||||
/@media \(max-width: 760px\)[\s\S]*?\.video-input-grid\s*\{[^}]*grid-cols-\[repeat\(2,_minmax\(0,_1fr\)\)\]/
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user