diff --git a/AGENTS.md b/AGENTS.md index 3d8e19f..7e382c8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,6 +58,9 @@ ### 布局、说明与间距 - 页面外边距、模块间距优先复用 `--app-content-padding`、`--app-content-gap`;表单与抽屉内部复用对应公共组件的间距,不在各页面随意添加不同数值。 +- **表单字段间距为强制要求**:页面、弹窗、抽屉中的标签不能紧贴输入框、下拉框或选择组;自定义字段默认使用 `--app-field-label-gap`(8px),相邻字段默认使用 `--app-field-gap`(16px)。紧凑布局和移动端也不得取消这些必要间距,除非用户明确要求调整。 +- 自定义的“标签 + 控件”优先复用 `src/styles/admin.css` 中的 `workspace-form-field`,使用真实的纵向 Flex/Grid `gap`;成熟表单继续复用 `AppForm` / `NFormItem` 的公共排版。禁止仅给行内 `span` 套 `space-y-*` 或垂直 margin 后,就认定标签间距已经生效。 +- 修改表单布局时必须核对同模块的全部同类字段,保证同排标签、控件分别对齐;图片与表单并排时,图片标题和字段标签必须复用同一纵向间距值,图片与首排控件的上沿必须对齐;在本地 Chrome 检查桌面、窄屏及必要的加载/校验状态,确认实际留白生效后才算完成。 - 同级模块使用一致的标题、说明、字段间距和上下留白。需要说明时采用“模块标题 + 一句简短说明”,例如画布设置、图片配置、视频配置、动作与物理规则;优先复用 `WorkspaceSectionHeading`。 - 页面、弹窗和抽屉中的同级模块共用左右边界。普通分区直接对齐;需要突出一组内容时,优先用已有的中性背景包住整组内容。背景外沿与相邻模块对齐,组内使用统一内边距,避免透明容器单独缩进。 - 新建剧本等长表单默认每个字段单独占一行并铺满内容宽度;不因改成全屏就自动把原来的字段挤成两列。 diff --git a/src/components/ui/WorkspaceActionTooltip.vue b/src/components/ui/WorkspaceActionTooltip.vue index 0064b66..169a0a2 100644 --- a/src/components/ui/WorkspaceActionTooltip.vue +++ b/src/components/ui/WorkspaceActionTooltip.vue @@ -1,11 +1,13 @@ diff --git a/src/features/production/components/KeyframeCard.vue b/src/features/production/components/KeyframeCard.vue index 6080412..a1d65d3 100644 --- a/src/features/production/components/KeyframeCard.vue +++ b/src/features/production/components/KeyframeCard.vue @@ -1,4 +1,6 @@ + + diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index 097277b..c5d0c49 100644 --- a/src/features/production/components/ShotProductionAssets.vue +++ b/src/features/production/components/ShotProductionAssets.vue @@ -97,6 +97,8 @@ const props = defineProps<{ episodeNo?: number /** 视频提示词就绪项。 */ promptReadiness?: PromptReadinessItem + /** 首帧条件检查状态,在角标内展示以避免正文跳动。 */ + keyframeReadinessLoading?: boolean /** 首帧就绪项。 */ keyframeReadiness?: KeyframeReadinessItem /** 视频就绪项。 */ @@ -754,13 +756,16 @@ defineExpose({ inspectSpecs, inspecting }) -
-
+
+
{{ keyframeOnly ? '本镜首帧' : '02 · 首帧' }}
.production-stage-heading { + min-height: 72px; + } +} diff --git a/src/features/production/components/SourceApplicabilityFields.vue b/src/features/production/components/SourceApplicabilityFields.vue index 67dc740..a6bf145 100644 --- a/src/features/production/components/SourceApplicabilityFields.vue +++ b/src/features/production/components/SourceApplicabilityFields.vue @@ -120,7 +120,7 @@ const declarations = { aria-label="动作证据核对理由" />
-