fix: 区分视频引用素材卡片层级
This commit is contained in:
1 parent
553297ff50
commit
680024b792
2 files changed
+15
-3
No files matched your search
@@ -469,7 +469,7 @@ async function inspectSpecs() {
|
||||
</div>
|
||||
<p class="mt-2 text-xs text-muted">以下是当前镜头的生成输入;已生成的视频可能使用更早的素材。</p>
|
||||
<div v-if="currentVideoInput" class="video-input-grid mt-4">
|
||||
<article class="min-w-0 bg-(--app-subtle)">
|
||||
<article class="video-input-card">
|
||||
<AssetImage :src="currentVideoInput.providerInputKeyframe.imageUrl"
|
||||
:alt="`镜头 ${shot.shotNo} 视频输入首帧`" preview object-fit="contain" />
|
||||
<div class="min-w-0 p-2 text-center text-xs">
|
||||
@@ -480,13 +480,14 @@ async function inspectSpecs() {
|
||||
</div>
|
||||
</article>
|
||||
<article v-for="reference in currentVideoInput.references"
|
||||
:key="`${reference.subjectId}:${reference.imageId}`" class="min-w-0 bg-(--app-subtle)">
|
||||
:key="`${reference.subjectId}:${reference.imageId}`" class="video-input-card relative">
|
||||
<span class="video-input-ref" :title="reference.subjectRef">{{ reference.subjectRef }}</span>
|
||||
<AssetImage :src="reference.imageUrl" :alt="`${reference.subjectName} ${reference.subjectFormName} 参考图`"
|
||||
preview object-fit="contain" />
|
||||
<div class="min-w-0 p-2 text-center text-xs">
|
||||
<p class="truncate font-medium" :title="reference.subjectName">{{ reference.subjectName }}</p>
|
||||
<p class="mt-1 truncate text-[11px] text-muted" :title="reference.subjectFormName">
|
||||
{{ reference.subjectFormName }} · {{ reference.subjectRef }}
|
||||
{{ reference.subjectFormName }}
|
||||
</p>
|
||||
</div>
|
||||
</article>
|
||||
@@ -752,6 +753,14 @@ async function inspectSpecs() {
|
||||
.video-input-grid .asset-image {
|
||||
@apply aspect-square rounded-none;
|
||||
}
|
||||
.video-input-card {
|
||||
@apply min-w-0 overflow-hidden bg-(--app-control);
|
||||
}
|
||||
.video-input-ref {
|
||||
@apply pointer-events-none absolute top-2 left-2 z-1 max-w-[calc(100%-16px)] truncate px-1.5 py-1 font-mono text-[10px];
|
||||
color: var(--app-inverse);
|
||||
background: rgb(0 0 0 / 68%);
|
||||
}
|
||||
.video-record {
|
||||
@apply min-w-0 overflow-hidden rounded-none bg-(--app-subtle);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user