style: 缩小镜头首帧候选卡片
This commit is contained in:
1 parent
3888ca0538
commit
a72d96506a
2 files changed
+11
-1
No files matched your search
@@ -589,7 +589,7 @@ async function inspectSpecs() {
|
||||
@apply mt-4 flex min-h-[34px] flex-wrap items-center gap-3;
|
||||
}
|
||||
.keyframe-grid {
|
||||
@apply grid grid-cols-[repeat(3,_minmax(0,_1fr))] gap-3;
|
||||
@apply grid grid-cols-[repeat(auto-fill,_minmax(180px,_1fr))] gap-3;
|
||||
}
|
||||
.keyframe-card {
|
||||
@apply overflow-hidden rounded-none bg-(--app-subtle);
|
||||
|
||||
@@ -38,6 +38,16 @@ describe('镜头生产数据契约', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('首帧候选使用紧凑的自动填充网格,不随少量图片撑满整行', () => {
|
||||
const source = readFileSync('src/features/production/components/ShotProductionAssets.vue', 'utf8')
|
||||
expect(source).toMatch(
|
||||
/\.keyframe-grid\s*\{[^}]*grid-cols-\[repeat\(auto-fill,_minmax\(180px,_1fr\)\)\][^}]*gap-3/
|
||||
)
|
||||
expect(source).toMatch(
|
||||
/@media \(max-width: 760px\)[\s\S]*?\.keyframe-grid\s*\{[^}]*grid-cols-\[repeat\(2,_minmax\(0,_1fr\)\)\]/
|
||||
)
|
||||
})
|
||||
|
||||
it('可选尺寸必须成对留空或填写正整数', () => {
|
||||
expect(validOptionalSize('', '')).toBe(true)
|
||||
expect(validOptionalSize(1920, 1080)).toBe(true)
|
||||
|
||||
Reference in new issue
Block a user