fix(short-drama-agent-front): 修复视频素材布局与展示顺序
This commit is contained in:
1 parent
3d2c198e52
commit
1fba14da5d
2 files changed
+44
-28
No files matched your search
@@ -46,12 +46,17 @@ 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="currentVideo" class="video-grid mt-4"')
|
||||
expect(source).toMatch(/\.keyframe-grid,\s*\.video-grid\s*\{[^}]*max-w-\[260px\][^}]*grid-cols-1/)
|
||||
expect(source).toMatch(
|
||||
/\.video-input-grid\s*\{[^}]*grid-template-columns:\s*repeat\(auto-fit, minmax\(min\(180px, 100%\), 1fr\)\)/
|
||||
/\.video-input-grid\s*\{[^}]*grid-template-columns:\s*repeat\(auto-fit, minmax\(min\(220px, 100%\), 1fr\)\)/
|
||||
)
|
||||
expect(source).toContain("'--video-input-count': (currentVideoInput?.references.length ?? 0) + 1")
|
||||
expect(source).toMatch(/\.video-input-section\s*\{\s*width:\s*100%;\s*\}/)
|
||||
expect(source).toMatch(
|
||||
/\.video-input-grid\s*\{[^}]*max-width:\s*calc\(var\(--video-input-count\) \* 220px \+ \(var\(--video-input-count\) - 1\) \* 12px\)/
|
||||
)
|
||||
expect(source).toMatch(/\.keyframe-card \.asset-image\s*\{[^}]*aspect-square/)
|
||||
const videoCard = readFileSync('src/features/production/components/VideoCard.vue', 'utf8')
|
||||
|
||||
Reference in new issue
Block a user