perf(short-drama-agent-front): 优化记录加载与工作区体验
This commit is contained in:
1 parent
d0264c08ce
commit
db9aea1694
111 files changed
+1680
-1290
No files matched your search
@@ -30,6 +30,7 @@ import { downloadText } from '../../lib/format'
|
||||
import ConfirmAction from '../workflows/ConfirmAction.vue'
|
||||
import { useSubjectImages } from './useSubjectImages'
|
||||
import { hasRunningImages, primaryImage, isIdentityAnchorReuse } from './model'
|
||||
import ProjectWorkspaceSkeleton from '../projects/components/ProjectWorkspaceSkeleton.vue'
|
||||
import type { SubjectFormAsset } from './types'
|
||||
import GenerateImageDialog from './components/GenerateImageDialog.vue'
|
||||
import ImagePreparationDrawer from './components/ImagePreparationDrawer.vue'
|
||||
@@ -76,13 +77,6 @@ const linkedReferences = computed(() => referenceTargets(impact.references.data.
|
||||
const sourceMissing = computed(
|
||||
() => sourceShotId.value && !sourceShot.value && !impact.query.loading.value && !impact.query.error.value
|
||||
)
|
||||
const sourceCurrent = computed(
|
||||
() =>
|
||||
sourceShot.value &&
|
||||
!sourceShot.value.primaryKeyframeStale &&
|
||||
!impact.query.loading.value &&
|
||||
!impact.query.error.value
|
||||
)
|
||||
const targetUnlinked = computed(
|
||||
() =>
|
||||
targetForm.value &&
|
||||
@@ -94,8 +88,7 @@ const showImpactDetails = computed(
|
||||
() =>
|
||||
sourceShotId.value &&
|
||||
(sourceMissing.value ||
|
||||
sourceCurrent.value ||
|
||||
sourceShot.value?.inconsistent ||
|
||||
impact.query.error.value ||
|
||||
targetUnlinked.value ||
|
||||
linkedReferences.value.length ||
|
||||
impact.references.loading.value ||
|
||||
@@ -109,14 +102,6 @@ const sourceLocation = computed(() =>
|
||||
}
|
||||
: null
|
||||
)
|
||||
const impactOptions = computed(() => {
|
||||
const items = [...impact.stale.value]
|
||||
if (sourceShot.value && !items.some(item => item.shotId === sourceShot.value?.shotId)) items.push(sourceShot.value)
|
||||
return items.map(item => ({
|
||||
value: item.shotId,
|
||||
label: `第 ${item.episodeNo} 集 · 剧情段落 ${item.beatNo} / 镜头 ${item.shotNo}${item.inconsistent ? ' · 状态待核对' : item.primaryKeyframeStale ? ' · 首帧过期' : ' · 当前镜头'}`
|
||||
}))
|
||||
})
|
||||
const toolsOpen = ref(false)
|
||||
/** 免费检查图片阶段规格和母版依赖。 */
|
||||
const preparationOpen = ref(false)
|
||||
@@ -234,6 +219,18 @@ const promptId = ref('')
|
||||
const promptForm = computed(() => forms.value.find(form => form.id === promptId.value) ?? null)
|
||||
const generateForm = computed(() => forms.value.find(form => form.id === generateId.value) ?? null)
|
||||
const galleryForm = computed(() => forms.value.find(form => form.id === galleryId.value) ?? null)
|
||||
|
||||
/**
|
||||
* 用已记录的图片尺寸预留瀑布流卡片高度,缺少尺寸时保持方形。
|
||||
* @param form 当前形态
|
||||
* @returns 图片容器宽高比
|
||||
*/
|
||||
function formCoverRatio(form: SubjectFormAsset) {
|
||||
const image = primaryImage(form.images)
|
||||
const width = image?.width
|
||||
const height = image?.height
|
||||
return width && height && width > 0 && height > 0 ? `${width} / ${height}` : '1 / 1'
|
||||
}
|
||||
const completeCount = computed(() => forms.value.filter(form => primaryImage(form.images)).length)
|
||||
const filtered = computed(() =>
|
||||
forms.value.filter(
|
||||
@@ -289,13 +286,6 @@ function resetFilters() {
|
||||
})
|
||||
}
|
||||
|
||||
/** 切换受影响镜头时清空之前的素材过滤,避免相关素材被旧筛选隐藏。 */
|
||||
function selectImpactShot(shotId: string | null) {
|
||||
void router.replace({
|
||||
query: { ...route.query, sourceShotId: shotId || undefined, subjectFormId: undefined, subjectRef: undefined }
|
||||
})
|
||||
}
|
||||
|
||||
/** 同时刷新素材和镜头影响状态,查询仍不启动生成。 */
|
||||
async function refreshAssets() {
|
||||
await Promise.all([refreshProject(), query.refresh(), impact.query.refresh(), impact.references.refresh()])
|
||||
@@ -305,11 +295,14 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<WorkspacePage compact mobile-scroll class="gallery-workspace-page">
|
||||
<!-- 以下是图库首次加载的完整工作区骨架 -->
|
||||
<ProjectWorkspaceSkeleton v-if="!query.data.value && query.loading.value" variant="subject-images" />
|
||||
<WorkspacePage v-else compact mobile-scroll class="gallery-workspace-page">
|
||||
<template #default>
|
||||
<!-- 批量设置使用弹窗,入口跟随图库筛选区。 -->
|
||||
<!-- 以下是全屏形态生图配置与回执,入口跟随图库筛选区。 -->
|
||||
<WorkspaceTools
|
||||
triggerless
|
||||
fullscreen
|
||||
:pending="operation.pending"
|
||||
:pending-label="operation.label"
|
||||
v-model:open="toolsOpen"
|
||||
@@ -319,13 +312,11 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
><div class="flex flex-wrap items-end justify-between gap-4">
|
||||
<div>
|
||||
<h2 class="text-lg font-semibold">形态图片</h2>
|
||||
<p class="mt-2 text-sm text-muted">
|
||||
为人物、场景和道具准备造型参考图。已有图片直接从数据库读取。
|
||||
</p>
|
||||
<p class="mt-2 text-sm text-muted">准备人物、场景和道具参考图。</p>
|
||||
</div>
|
||||
</div>
|
||||
<DetailDisclosure title="母版继承与过期处理" class="mt-4">
|
||||
基础形态可复用已确认并锁定的身份母版,其他形态仍需单独生成。浏览图库不会补建或切换主图;母版变化后,已有图片保留并需重新核对来源与质量。
|
||||
基础形态可复用已锁定母版。母版变化后,请复核已有图片。
|
||||
</DetailDisclosure>
|
||||
<FormPromptBatch
|
||||
:generating="isOperationRunning(operation, '批量生成形态正式提示词')"
|
||||
@@ -359,9 +350,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
<span class="ml-3 text-xs text-muted">使用项目图片模型</span>
|
||||
</p>
|
||||
</div>
|
||||
<p class="mt-2 text-[11px] leading-6 text-muted">
|
||||
图库仅查看已保存的图片。已有主图仍须通过当前来源和质量检查,才能用于后续分镜;独立候选与历史失败记录均保留。
|
||||
</p>
|
||||
<p class="mt-2 text-[11px] leading-6 text-muted">主图通过来源和质量检查后可用于分镜。</p>
|
||||
<section class="mt-4 pt-4">
|
||||
<h3 class="text-sm font-semibold">项目批量生图</h3>
|
||||
<AppForm :model="formModel" :rules="rules" :disabled="operation.pending" validate-on-change>
|
||||
@@ -412,7 +401,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
</div>
|
||||
</AppForm>
|
||||
<p class="mt-3 text-xs leading-6 text-muted">
|
||||
作用于整个项目,不受下方筛选影响。上限只限制本次真正生图数量,其余显示为“待后续处理”,不计入跳过。默认使用项目尺寸与正式提示词,不会启动视频生成。
|
||||
批量生图覆盖全项目,使用项目尺寸和已保存的提示词。超过上限的形态留待下次处理。
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
@@ -437,7 +426,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
:show-icon="false"
|
||||
class="mt-3"
|
||||
>
|
||||
部分形态生图失败。已生成的图片保留;先查看失败原因,再按形态重新生图。
|
||||
部分形态生图失败。成功图片已保留,请核对原因后重试。
|
||||
</ContextNotice>
|
||||
<ul class="mt-3 space-y-2 text-xs text-danger">
|
||||
<li v-for="failure in session.receipt.result.failures" :key="failure.subjectFormId">
|
||||
@@ -445,96 +434,14 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
>:{{ userFacingText(failure.error) }}
|
||||
</li>
|
||||
</ul>
|
||||
<p class="mt-3 text-[11px] text-muted">
|
||||
回执仅保留于当前浏览器会话;图片以刷新后的数据库记录为准。
|
||||
</p>
|
||||
<p class="mt-3 text-[11px] text-muted">刷新可查看最新图片。</p>
|
||||
</section>
|
||||
</WorkspaceTools>
|
||||
<!-- 关联说明、筛选和图片共用正文滚动区,避免镜头切换时两块滚动区域高度不同步。 -->
|
||||
<ContextNotice
|
||||
v-if="impact.stale.value.length"
|
||||
type="warning"
|
||||
:show-icon="false"
|
||||
class="mt-3"
|
||||
title="下游主首帧需要处理"
|
||||
data-keyframe-impact
|
||||
>
|
||||
<div class="flex flex-wrap items-start justify-between gap-2">
|
||||
<p>
|
||||
{{ impact.stale.value.length }}
|
||||
个镜头的首帧需要核对。此警告不表示形态图片本身失效;请先查看对应镜头与关联素材,确认原因后再处理。
|
||||
</p>
|
||||
<NButton
|
||||
text
|
||||
size="small"
|
||||
:loading="impact.query.loading.value"
|
||||
data-refresh-keyframe-impact
|
||||
@click="impact.query.refresh"
|
||||
>重新检查</NButton
|
||||
>
|
||||
</div>
|
||||
<p v-if="impact.stale.value.some(item => item.inconsistent)" class="mt-2">
|
||||
其中 {{ impact.stale.value.filter(item => item.inconsistent).length }}
|
||||
个镜头的首帧与视频检查结果不一致,请先核对状态。
|
||||
</p>
|
||||
<!-- 以下是待处理镜头明细模块,直接展示编号并提供精确定位入口 -->
|
||||
<NScrollbar class="mt-3 max-h-36" aria-label="待核对镜头列表">
|
||||
<ul class="space-y-2">
|
||||
<li
|
||||
v-for="shot in impact.stale.value"
|
||||
:key="shot.shotId"
|
||||
class="flex flex-wrap items-center gap-x-4 gap-y-2"
|
||||
>
|
||||
<span class="font-medium"
|
||||
>第 {{ shot.episodeNo }} 集 · 剧情段落 {{ shot.beatNo }} / 镜头 {{ shot.shotNo }}</span
|
||||
>
|
||||
<NTag size="small" :bordered="false" type="warning">{{
|
||||
shot.inconsistent ? '状态待核对' : '首帧过期'
|
||||
}}</NTag>
|
||||
<NButton text size="small" data-impact-materials @click="selectImpactShot(shot.shotId)"
|
||||
>查看关联素材</NButton
|
||||
>
|
||||
<RouterLink
|
||||
:to="{
|
||||
path: `/projects/${encodeURIComponent(id)}/production`,
|
||||
query: { episodeNo: String(shot.episodeNo), shotId: shot.shotId }
|
||||
}"
|
||||
class="text-button"
|
||||
data-impact-shot-link
|
||||
>查看镜头 →</RouterLink
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</NScrollbar>
|
||||
</ContextNotice>
|
||||
<ContextNotice v-if="impact.query.error.value" type="warning" :show-icon="false" class="mt-3"
|
||||
>镜头影响检查失败,暂时无法确认有无过期首帧:{{ impact.query.error.value }}
|
||||
<NButton text size="small" @click="impact.query.refresh">重试检查</NButton></ContextNotice
|
||||
>
|
||||
<!-- 以下是图库筛选与来自镜头的定位操作 -->
|
||||
<div class="gallery-sticky-controls">
|
||||
<div class="form-image-filter-region">
|
||||
<div
|
||||
class="form-image-toolbar"
|
||||
:class="{
|
||||
'has-impact-picker': impactOptions.length || sourceShotId,
|
||||
'has-impact-actions': sourceShotId || targetFormId
|
||||
}"
|
||||
>
|
||||
<div
|
||||
v-if="impactOptions.length || sourceShotId"
|
||||
class="asset-impact-picker"
|
||||
role="group"
|
||||
aria-label="镜头定位与导航"
|
||||
>
|
||||
<NSelect
|
||||
:value="sourceShot?.shotId ?? null"
|
||||
:options="impactOptions"
|
||||
placeholder="选择待核对镜头,查看关联素材"
|
||||
clearable
|
||||
aria-label="选择关联镜头"
|
||||
class="asset-impact-select"
|
||||
@update:value="selectImpactShot"
|
||||
/>
|
||||
<div class="form-image-toolbar" :class="{ 'has-impact-picker': sourceShotId }">
|
||||
<div v-if="sourceShotId" class="asset-impact-picker" role="group" aria-label="镜头定位与导航">
|
||||
<RouterLink v-if="sourceLocation" :to="sourceLocation" custom v-slot="{ href, navigate }">
|
||||
<NButton
|
||||
tag="a"
|
||||
@@ -554,7 +461,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
v-if="sourceShotId || targetFormId"
|
||||
class="icon-button"
|
||||
aria-label="查看全部素材"
|
||||
title="查看全部素材(清除定位与筛选)"
|
||||
title="查看全部素材"
|
||||
@click="resetFilters"
|
||||
>
|
||||
<template #icon><LayoutGrid :size="16" /></template>
|
||||
@@ -665,17 +572,11 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
</div>
|
||||
<div v-if="showImpactDetails" class="asset-impact-context" aria-label="镜头与素材定位">
|
||||
<p v-if="sourceMissing" class="text-danger">来源镜头不存在或不属于当前项目,未读取其素材。</p>
|
||||
<p v-if="sourceCurrent" class="text-xs">
|
||||
当前检查:{{
|
||||
sourceShot?.primaryKeyframeId ? '该镜头主首帧未被标记为过期' : '该镜头暂无主首帧'
|
||||
}}。请以最新制作状态为准。
|
||||
</p>
|
||||
<p v-if="sourceShot?.inconsistent" class="text-xs text-danger">
|
||||
当前镜头的首帧与视频状态不一致。请先核对身份母版和当前素材,暂不建议重复生图。
|
||||
</p>
|
||||
<p v-if="targetUnlinked" class="text-xs text-danger">
|
||||
指定形态不在该镜头当前的有效引用列表中,关联可能已调整或主图缺失,请从下方关联素材重新核对。
|
||||
<p v-if="impact.query.error.value" class="text-xs text-danger">
|
||||
无法读取镜头。
|
||||
<NButton text size="small" @click="impact.query.refresh">重试</NButton>
|
||||
</p>
|
||||
<p v-if="targetUnlinked" class="text-xs text-danger">此形态已不在镜头的关联素材中。</p>
|
||||
<NScrollbar
|
||||
v-if="linkedReferences.length && !impact.references.error.value"
|
||||
:key="sourceShotId"
|
||||
@@ -723,16 +624,9 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
<ContextNotice v-if="query.error.value" role="alert" type="error" :show-icon="false" class="mt-4"
|
||||
>{{ query.error.value }}<span v-if="forms.length"> 当前展示上次读取的数据。</span></ContextNotice
|
||||
><ContextNotice v-if="running" role="status" type="info" :show-icon="false" class="mt-4">
|
||||
数据库中有形态图片正在后台生成。对应形态会暂停重复提交,其它形态仍可继续生成;项目批量生图需等待当前任务完成。
|
||||
部分形态正在生成。任务完成后可再次批量生图。
|
||||
</ContextNotice>
|
||||
<p v-if="!query.data.value && query.loading.value" class="py-10 text-sm text-muted" role="status">
|
||||
正在读取形态和已有图片…
|
||||
</p>
|
||||
<div
|
||||
v-else-if="filtered.length"
|
||||
class="form-image-grid"
|
||||
:class="{ 'form-image-masonry': layout === 'masonry' }"
|
||||
>
|
||||
<div v-if="filtered.length" class="form-image-grid" :class="{ 'form-image-masonry': layout === 'masonry' }">
|
||||
<article
|
||||
v-for="form in filtered"
|
||||
v-masonry-card="layout === 'masonry'"
|
||||
@@ -746,7 +640,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
<AssetImage
|
||||
:src="primaryImage(form.images)?.imageUrl"
|
||||
:alt="`${form.subject.name} · ${form.name}`"
|
||||
:class="{ 'form-image-has-source': Boolean(primaryImage(form.images)?.imageUrl) }"
|
||||
:style="{ '--form-cover-ratio': formCoverRatio(form) }"
|
||||
:object-fit="layout === 'masonry' ? 'contain' : 'cover'"
|
||||
preview
|
||||
:empty-text="
|
||||
@@ -787,27 +681,6 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
>
|
||||
<span class="text-[10px] text-muted">{{ form.images.length }} 条记录</span>
|
||||
</div>
|
||||
<ContextNotice
|
||||
v-if="
|
||||
sourceShot?.primaryKeyframeStale &&
|
||||
impact.relatedForms.value.has(form.id) &&
|
||||
!impact.references.error.value
|
||||
"
|
||||
type="warning"
|
||||
:show-icon="false"
|
||||
class="mt-3 text-xs leading-6"
|
||||
>
|
||||
第 {{ sourceShot.episodeNo }} 集 · 剧情段落 {{ sourceShot.beatNo }} / 镜头
|
||||
{{ sourceShot.shotNo }} 的待处理首帧关联此素材。
|
||||
{{
|
||||
sourceShot.inconsistent
|
||||
? '首帧与视频检查结果不一致,请先核对,不要据此重复生图。'
|
||||
: '关联不等于本素材失效;核对形态主图与身份母版,确认无误后只需重建首帧。'
|
||||
}}
|
||||
<RouterLink v-if="sourceLocation" :to="sourceLocation" class="text-button mt-2"
|
||||
>返回该镜头处理 →</RouterLink
|
||||
>
|
||||
</ContextNotice>
|
||||
<p v-if="form.images[0]?.status === 'failed'" class="mt-2 line-clamp-2 text-xs text-danger">
|
||||
{{ userFacingText(form.images[0].error) }}
|
||||
</p>
|
||||
@@ -846,9 +719,7 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
v-else-if="query.data.value"
|
||||
:title="forms.length ? '没有匹配的形态' : '还没有正式形态'"
|
||||
:description="
|
||||
forms.length
|
||||
? '调整筛选条件后再查看。批量生图不受筛选影响。'
|
||||
: '先完成剧本拆解和主体形态持久化,再来生成参考图。'
|
||||
forms.length ? '调整筛选条件后再查看。批量生图不受筛选影响。' : '请先拆解剧本并保存主体形态。'
|
||||
"
|
||||
>
|
||||
<NButton v-if="forms.length" @click="resetFilters">清除筛选</NButton> </EmptyState
|
||||
@@ -877,14 +748,6 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
<style>
|
||||
/* 本组件专属布局与 Naive 内部结构覆盖。 */
|
||||
@reference "../../styles/styles.css";
|
||||
.form-image-grid {
|
||||
@apply grid;
|
||||
/* 排版和列数计算共用卡片最小宽度,手机缩窄后不保留桌面隐式列。 */
|
||||
--gallery-card-min-width: 260px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(var(--gallery-card-min-width), 100%), 1fr));
|
||||
--gallery-gap: 12px;
|
||||
gap: var(--gallery-gap);
|
||||
}
|
||||
.form-image-card {
|
||||
@apply overflow-hidden;
|
||||
}
|
||||
@@ -916,111 +779,11 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
grid-row-end: span var(--form-image-row-span, 1);
|
||||
}
|
||||
.form-image-masonry .asset-image {
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
.form-image-masonry .asset-image.form-image-has-source {
|
||||
@apply aspect-auto;
|
||||
}
|
||||
.form-image-masonry .asset-image.form-image-has-source .n-image,
|
||||
.form-image-masonry .asset-image.form-image-has-source .n-image img {
|
||||
@apply h-auto;
|
||||
}
|
||||
.gallery-sticky-controls > .form-image-filter-region {
|
||||
@apply my-0;
|
||||
aspect-ratio: var(--form-cover-ratio, 1 / 1);
|
||||
}
|
||||
.gallery-workspace-page .workspace-scroll > .n-scrollbar-container {
|
||||
@apply [overflow-anchor:none];
|
||||
}
|
||||
.form-image-filter-region {
|
||||
@apply my-3 p-3;
|
||||
/* 外层使用浅灰分组,输入与下拉恢复为表面色,避免同色后失去控件边界。 */
|
||||
--app-field: var(--app-surface);
|
||||
--app-field-hover: var(--app-surface);
|
||||
background: var(--app-subtle);
|
||||
container-type: inline-size;
|
||||
}
|
||||
.form-image-toolbar {
|
||||
@apply grid grid-cols-[minmax(0,_1fr)] items-center gap-y-3 gap-x-4;
|
||||
}
|
||||
.form-image-toolbar.has-impact-picker {
|
||||
@apply grid-cols-[minmax(220px,_340px)_minmax(0,_1fr)];
|
||||
}
|
||||
.form-image-toolbar.has-impact-picker.has-impact-actions {
|
||||
@apply grid-cols-[minmax(260px,_420px)_minmax(0,_1fr)];
|
||||
}
|
||||
.asset-impact-picker {
|
||||
@apply flex items-center gap-2 min-w-0;
|
||||
}
|
||||
.asset-impact-picker .asset-impact-select {
|
||||
@apply flex-1;
|
||||
}
|
||||
.form-image-toolbar > * {
|
||||
@apply min-w-0;
|
||||
}
|
||||
.form-image-filters {
|
||||
@apply grid grid-cols-[minmax(200px,_360px)_152px_160px_auto] items-center gap-y-3 gap-x-4;
|
||||
}
|
||||
.form-image-filters > * {
|
||||
@apply min-w-0;
|
||||
}
|
||||
.filter-result-count {
|
||||
@apply justify-self-end text-muted text-xs whitespace-nowrap;
|
||||
}
|
||||
.form-image-display-controls {
|
||||
@apply flex items-center justify-self-end gap-4;
|
||||
}
|
||||
.gallery-layout-switch {
|
||||
@apply flex items-center gap-2;
|
||||
}
|
||||
/* 未选中的排版按钮与图库操作按钮共用浅灰底,同时不覆盖选中布局的绿色状态。 */
|
||||
.gallery-layout-switch .layout-option-button:not(.layout-option-active),
|
||||
.gallery-layout-switch .gallery-action-button {
|
||||
background: var(--app-control-hover);
|
||||
}
|
||||
@container (max-width: 1200px) {
|
||||
.form-image-toolbar.has-impact-picker,
|
||||
.form-image-toolbar.has-impact-picker.has-impact-actions {
|
||||
@apply grid-cols-[minmax(0,_1fr)];
|
||||
}
|
||||
}
|
||||
@container (max-width: 900px) {
|
||||
.form-image-filters {
|
||||
@apply grid-cols-[minmax(0,_1fr)_152px];
|
||||
}
|
||||
.status-filter {
|
||||
@apply col-start-1 row-start-2;
|
||||
}
|
||||
.form-image-display-controls {
|
||||
@apply col-start-2 row-start-2;
|
||||
}
|
||||
}
|
||||
@container (max-width: 460px) {
|
||||
.form-image-filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
/* 移动端固定为两行:搜索给类型选择让位,状态可收缩以优先保留四个完整操作按钮。 */
|
||||
.search-filter {
|
||||
flex: 1 1 calc(100% - 130px);
|
||||
min-width: 0;
|
||||
}
|
||||
.module-filter {
|
||||
flex: 0 0 120px;
|
||||
}
|
||||
.status-filter {
|
||||
flex: 0 1 110px;
|
||||
min-width: 90px;
|
||||
}
|
||||
.form-image-display-controls {
|
||||
flex: 1 0 152px;
|
||||
width: auto;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.filter-result-count {
|
||||
@apply hidden;
|
||||
}
|
||||
}
|
||||
.asset-impact-context {
|
||||
@apply flex flex-col gap-2.5 py-[5px] px-4 bg-(--app-subtle) m-0 min-w-0;
|
||||
}
|
||||
@@ -1033,9 +796,6 @@ const rules = { concurrency: integerRule('批量并发'), limit: integerRule('
|
||||
.asset-impact-links > * {
|
||||
@apply shrink-0;
|
||||
}
|
||||
.asset-impact-select {
|
||||
@apply min-w-0 w-full;
|
||||
}
|
||||
.form-image-card-focused {
|
||||
@apply shadow-[inset_3px_0_0_var(--app-accent-text)];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user