feat(short-drama-agent-front): 优化身份管理与镜头素材布局

This commit is contained in:
GJ committed 2026-10-11 21:41:56 +08:00
1 parent dd0bd79a35
commit 3d2c198e52
14 files changed
+1060 -629

No files matched your search

+2 -2
View File
@@ -51,7 +51,7 @@ describe('镜头生产数据契约', () => {
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-fill, minmax\(180px, 220px\)\)/
/\.video-input-grid\s*\{[^}]*grid-template-columns:\s*repeat\(auto-fit, minmax\(min\(180px, 100%\), 1fr\)\)/
)
expect(source).toMatch(/\.keyframe-card \.asset-image\s*\{[^}]*aspect-square/)
const videoCard = readFileSync('src/features/production/components/VideoCard.vue', 'utf8')
@@ -62,7 +62,7 @@ describe('镜头生产数据契约', () => {
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-input-grid\s*\{[^}]*grid-cols-\[repeat\(2,_minmax\(0,_1fr\)\)\]/
/@media \(max-width: 760px\)[\s\S]*?\.video-input-grid\s*\{[^}]*grid-template-columns:\s*repeat\(auto-fit, minmax\(min\(120px, 100%\), 1fr\)\)/
)
})