style: display shot videos in compact grid (#17)
This commit is contained in:
1 file changed
+7
-13
@@ -425,7 +425,7 @@ async function inspectSpecs() {
|
|||||||
。请检查候选视频和校验结果,调整提示词或参考资产后再重新生成。
|
。请检查候选视频和校验结果,调整提示词或参考资产后再重新生成。
|
||||||
</template>
|
</template>
|
||||||
</NAlert>
|
</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">
|
<article v-for="item in videos" :key="item.id" class="video-record">
|
||||||
<video
|
<video
|
||||||
v-if="item.status === 'completed' && safeVideoUrl(item.videoUrl)"
|
v-if="item.status === 'completed' && safeVideoUrl(item.videoUrl)"
|
||||||
@@ -434,7 +434,7 @@ async function inspectSpecs() {
|
|||||||
preload="metadata"
|
preload="metadata"
|
||||||
class="production-video"
|
class="production-video"
|
||||||
></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">
|
<div class="flex flex-wrap items-center gap-2">
|
||||||
<StatusBadge :status="item.status" :label="productionStatusLabel(item.status)" />
|
<StatusBadge :status="item.status" :label="productionStatusLabel(item.status)" />
|
||||||
<NTag v-if="item.isPrimary" size="small" :bordered="false">主视频</NTag>
|
<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 0 0 1px rgb(0 0 0 / 55%),
|
||||||
0 2px 8px rgb(0 0 0 / 35%);
|
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 {
|
.video-record {
|
||||||
@apply flex overflow-hidden rounded-none bg-(--app-subtle);
|
@apply min-w-0 overflow-hidden rounded-none bg-(--app-subtle);
|
||||||
}
|
}
|
||||||
.production-video {
|
.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) {
|
@media (max-width: 760px) {
|
||||||
.keyframe-grid {
|
.keyframe-grid {
|
||||||
@apply grid-cols-[repeat(2,_minmax(0,_1fr))];
|
@apply grid-cols-[repeat(2,_minmax(0,_1fr))];
|
||||||
}
|
}
|
||||||
.video-record {
|
|
||||||
@apply block;
|
|
||||||
}
|
|
||||||
.production-video {
|
|
||||||
@apply w-full;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.production-video {
|
|
||||||
@apply bg-[#080808];
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user