style: display shot videos in compact grid (#17)

This commit is contained in:
GouJ authored and GitHub committed 2026-09-24 09:39:29 +08:00
1 parent 3caea26924
commit bb395b37f5
1 file changed
+7 -13
@@ -425,7 +425,7 @@ async function inspectSpecs() {
。请检查候选视频和校验结果,调整提示词或参考资产后再重新生成。
</template>
</NAlert>
<div v-if="videos.length" class="mt-4 space-y-3">
<div v-if="videos.length" class="video-grid mt-4">
<article v-for="item in videos" :key="item.id" class="video-record">
<video
v-if="item.status === 'completed' && safeVideoUrl(item.videoUrl)"
@@ -434,7 +434,7 @@ async function inspectSpecs() {
preload="metadata"
class="production-video"
></video>
<div class="min-w-0 flex-1 p-4">
<div class="min-w-0 p-3">
<div class="flex flex-wrap items-center gap-2">
<StatusBadge :status="item.status" :label="productionStatusLabel(item.status)" />
<NTag v-if="item.isPrimary" size="small" :bordered="false">主视频</NTag>
@@ -647,24 +647,18 @@ async function inspectSpecs() {
0 0 0 1px rgb(0 0 0 / 55%),
0 2px 8px rgb(0 0 0 / 35%);
}
.video-grid {
@apply grid grid-cols-[repeat(auto-fill,_minmax(min(260px,_100%),_1fr))] gap-3;
}
.video-record {
@apply flex overflow-hidden rounded-none bg-(--app-subtle);
@apply min-w-0 overflow-hidden rounded-none bg-(--app-subtle);
}
.production-video {
@apply w-[min(44%,390px)] min-h-[170px] bg-ink object-contain;
@apply block w-full aspect-square bg-[#080808] object-contain;
}
@media (max-width: 760px) {
.keyframe-grid {
@apply grid-cols-[repeat(2,_minmax(0,_1fr))];
}
.video-record {
@apply block;
}
.production-video {
@apply w-full;
}
}
.production-video {
@apply bg-[#080808];
}
</style>