fix(short-drama-agent-front): 优化首帧布局与来源复核

This commit is contained in:
GJ committed 2026-11-09 16:38:47 +08:00
1 parent 10e008ca10
commit 3915566994
17 files changed
+733 -223

No files matched your search

@@ -97,6 +97,8 @@ const props = defineProps<{
episodeNo?: number
/** 视频提示词就绪项。 */
promptReadiness?: PromptReadinessItem
/** 首帧条件检查状态,在角标内展示以避免正文跳动。 */
keyframeReadinessLoading?: boolean
/** 首帧就绪项。 */
keyframeReadiness?: KeyframeReadinessItem
/** 视频就绪项。 */
@@ -754,13 +756,16 @@ defineExpose({ inspectSpecs, inspecting })
</div>
</div>
<div class="production-stage">
<div class="production-stage-heading">
<div class="production-stage" :class="{ 'production-stage-with-corner': keyframeOnly }">
<div class="production-stage-heading" :class="{ 'pr-24': keyframeOnly }">
<div>
<h5 class="text-sm font-medium">{{ keyframeOnly ? '本镜首帧' : '02 · 首帧' }}</h5>
</div>
<!-- 以下是首帧状态与对应原因入口模块,过期使用警告色 -->
<ProductionStageStatus
:icon-only="keyframeOnly"
:loading="keyframeReadinessLoading"
:class="{ 'production-stage-corner': keyframeOnly }"
:status="keyframeReadiness?.status"
:label="keyframeReadiness ? productionStatusLabel(keyframeReadiness.status) : undefined"
:warning-label="keyframeStale ? '主首帧已过期' : undefined"
@@ -1227,6 +1232,16 @@ defineExpose({ inspectSpecs, inspecting })
.production-stage:first-of-type {
@apply border-t-0;
}
/* 分镜详情由标签正文统一提供顶部留白,此处不再叠加生产阶段内边距;圆章保持右上定位。 */
.production-stage-with-corner {
position: relative;
padding-top: 0;
}
.production-stage-corner {
position: absolute;
top: 0;
right: 0;
}
.production-stage-heading {
@apply flex items-start justify-between gap-4;
}
@@ -1302,4 +1317,11 @@ defineExpose({ inspectSpecs, inspecting })
@apply p-4;
}
}
/* 窄屏标题区固定预留圆章和原因入口的空间,检查状态切换时正文位置保持稳定。 */
@media (max-width: 639px) {
.production-stage-with-corner > .production-stage-heading {
min-height: 72px;
}
}
</style>