style: 增加首帧候选说明与列表间距
This commit is contained in:
1 parent
4298438219
commit
158287c980
2 files changed
+2
-1
No files matched your search
@@ -547,7 +547,7 @@ async function inspectSpecs() {
|
|||||||
description="先完成质量检查;只有本会话校验通过的候选才能设为主首帧。"
|
description="先完成质量检查;只有本会话校验通过的候选才能设为主首帧。"
|
||||||
wide
|
wide
|
||||||
>
|
>
|
||||||
<div v-if="keyframeCandidates.length" class="keyframe-grid">
|
<div v-if="keyframeCandidates.length" class="keyframe-grid mt-4">
|
||||||
<KeyframeCard
|
<KeyframeCard
|
||||||
v-for="item in keyframeCandidates"
|
v-for="item in keyframeCandidates"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ describe('镜头生产数据契约', () => {
|
|||||||
|
|
||||||
it('首帧候选使用紧凑的自动填充网格,不随少量图片撑满整行', () => {
|
it('首帧候选使用紧凑的自动填充网格,不随少量图片撑满整行', () => {
|
||||||
const source = readFileSync('src/features/production/components/ShotProductionAssets.vue', 'utf8')
|
const source = readFileSync('src/features/production/components/ShotProductionAssets.vue', 'utf8')
|
||||||
|
expect(source).toContain('v-if="keyframeCandidates.length" class="keyframe-grid mt-4"')
|
||||||
expect(source).toMatch(
|
expect(source).toMatch(
|
||||||
/\.keyframe-grid\s*\{[^}]*grid-cols-\[repeat\(auto-fill,_minmax\(180px,_1fr\)\)\][^}]*gap-3/
|
/\.keyframe-grid\s*\{[^}]*grid-cols-\[repeat\(auto-fill,_minmax\(180px,_1fr\)\)\][^}]*gap-3/
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user