diff --git a/src/App.vue b/src/App.vue index 2a96b63..1aa9870 100644 --- a/src/App.vue +++ b/src/App.vue @@ -387,7 +387,9 @@ const menuOptions = computed(() => { @apply block text-[8px] tracking-[1px] font-normal text-muted mt-[3px]; } .admin-topbar { - @apply relative z-10 flex items-center justify-between shrink-0 h-11 py-0 px-5 gap-3 bg-(--app-surface); + @apply relative z-10 flex items-center justify-between shrink-0 h-11 py-0 pl-5 gap-3 bg-(--app-surface); + /* 主题切换按钮与项目配置、内容工具栏共用右侧对齐线。 */ + padding-right: var(--app-content-padding); } .admin-sider .n-menu-divider { @apply h-3 bg-transparent; @@ -542,7 +544,7 @@ const menuOptions = computed(() => { @apply flex mr-2; } .admin-topbar { - @apply py-0 px-2.5; + @apply py-0 pl-2.5; } } @media (prefers-reduced-motion: reduce) { diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue index 5c4b275..d28890a 100644 --- a/src/components/ui/AppDialog.vue +++ b/src/components/ui/AppDialog.vue @@ -140,22 +140,6 @@ onBeforeUnmount(() => { @apply min-h-0; } -.app-dialog .n-card-header__close { - @apply grid place-items-center w-10 h-10 -m-2 rounded-none bg-transparent; -} - -.app-dialog .n-card-header__close .n-base-icon { - @apply p-2 box-content bg-(--app-subtle); -} - -.app-dialog .n-card-header__close:hover { - @apply bg-transparent; -} - -.app-dialog .n-card-header__close:hover .n-base-icon { - @apply bg-(--app-control-hover); -} - .app-dialog .n-card__footer { @apply shrink-0 bg-(--app-surface); display: flex; diff --git a/src/components/ui/WorkspaceExportButton.vue b/src/components/ui/WorkspaceExportButton.vue new file mode 100644 index 0000000..cebd522 --- /dev/null +++ b/src/components/ui/WorkspaceExportButton.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/src/features/breakdown/BreakdownPage.vue b/src/features/breakdown/BreakdownPage.vue index de555ae..7d24dea 100644 --- a/src/features/breakdown/BreakdownPage.vue +++ b/src/features/breakdown/BreakdownPage.vue @@ -3,7 +3,7 @@ import AppForm from '../../components/ui/AppForm.vue' import { NFormItem } from 'naive-ui' import { integerRule, fieldRule } from '../../lib/form-rules' import WorkspacePage from '../../components/ui/WorkspacePage.vue' -import ActionMenu from '../../components/ui/ActionMenu.vue' +import WorkspaceExportButton from '../../components/ui/WorkspaceExportButton.vue' import { NScrollbar, NAlert, NButton, NCheckbox, NInputNumber, NProgress, NTab, NTable, NTabs } from 'naive-ui' import { computed, onScopeDispose, ref, watch } from 'vue' import { Layers, LoaderCircle, ArrowRight, Settings2 } from '@lucide/vue' @@ -14,7 +14,6 @@ import type { BreakdownAction, BreakdownInput, BreakdownModule, BreakdownPreview import { breakdownSnapshot, recoveryOptions, workflowCheckpoints } from '../workflows/selectors' import { getOperation, runOperation } from '../workflows/operations' import ConfirmAction from '../workflows/ConfirmAction.vue' -import HistoryPanel from '../workflows/HistoryPanel.vue' import WorkflowExecutionPanel from '../workflows/WorkflowExecutionPanel.vue' import { useWorkflowExecution } from '../workflows/execution' import SubjectList from './components/SubjectList.vue' @@ -31,7 +30,6 @@ const previewBusy = ref(false) const previewError = ref('') const tab = ref('character') const toolsOpen = ref(false) -const showHistory = ref(false) const moduleOptions: { value: BreakdownModule; label: string; description: string }[] = [ { value: 'character', label: '人物', description: '人物身份、外观与形态' }, { value: 'scene', label: '场景', description: '故事空间与环境特征' }, @@ -447,16 +445,17 @@ const rules = {
{{ option.label - }}{{ subjects.filter(item => item.module === option.value).length }} + {{ + option.label + }}分镜任务明细任务
-
-
+
+
@@ -650,8 +638,9 @@ const rules = { .breakdown-results-section > .result-toolbar { @apply shrink-0; } -.breakdown-results-section > .content-with-history { - @apply flex-1 h-auto min-h-0 grid-rows-[minmax(0,_1fr)]; +.breakdown-results-section > .breakdown-content { + /* 移除执行记录分栏,结果独占剩余宽高。 */ + @apply grid flex-1 h-auto min-h-0 grid-cols-[minmax(0,_1fr)] grid-rows-[minmax(0,_1fr)]; /* 外层透明,搜索框和各条目使用自身背景,模块间距不再铺底色。 */ background: transparent; } @@ -665,8 +654,13 @@ const rules = { .breakdown-result-pad .subject-list-toolbar { margin-bottom: var(--app-content-gap); } -.breakdown-results-section > .content-with-history.history-hidden { - @apply grid-cols-[minmax(0,_1fr)] grid-rows-[minmax(0,_1fr)]; +.breakdown-workspace-page .workspace-tabs .n-tabs-nav__suffix, +.breakdown-workspace-page .breakdown-toolbar-actions { + /* 设置与导出入口共用标签栏高度,导出按钮保持正方形。 */ + align-items: stretch; +} +.breakdown-workspace-page .breakdown-toolbar-actions { + gap: 0; } .breakdown-workspace-page .breakdown-mobile-tools.n-button { display: none; @@ -679,7 +673,6 @@ const rules = { .breakdown-workspace-page .workspace-heading-scroll.n-scrollbar { display: none; } - .breakdown-more-actions, .breakdown-task-label-desktop { display: none; } @@ -709,8 +702,8 @@ const rules = { flex: none; overflow: visible; } - .breakdown-workspace-page .content-with-history, - .breakdown-workspace-page .content-with-history > main, + .breakdown-workspace-page .breakdown-content, + .breakdown-workspace-page .breakdown-content > main, .breakdown-workspace-page .breakdown-results-scroll, .breakdown-workspace-page .breakdown-results-scroll > .n-scrollbar-container { height: auto; @@ -768,13 +761,5 @@ const rules = { .breakdown-results-section .tabs-toolbar-actions { @apply min-h-0 flex-nowrap; } - .breakdown-results-section .content-with-history:not(.history-hidden) { - @apply relative; - grid-template-columns: minmax(0, 1fr); - grid-template-rows: minmax(0, 1fr); - } - .breakdown-results-section .content-with-history:not(.history-hidden) .history-panel { - @apply absolute inset-0 z-30; - } } diff --git a/src/features/breakdown/BreakdownSkeleton.vue b/src/features/breakdown/BreakdownSkeleton.vue new file mode 100644 index 0000000..e1cd665 --- /dev/null +++ b/src/features/breakdown/BreakdownSkeleton.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/src/features/create-drama/CreateDramaPage.vue b/src/features/create-drama/CreateDramaPage.vue index a908b25..5055193 100644 --- a/src/features/create-drama/CreateDramaPage.vue +++ b/src/features/create-drama/CreateDramaPage.vue @@ -1,15 +1,14 @@ + + + + diff --git a/src/features/create-drama/EpisodeReader.vue b/src/features/create-drama/EpisodeReader.vue index 76086ed..b7c5c10 100644 --- a/src/features/create-drama/EpisodeReader.vue +++ b/src/features/create-drama/EpisodeReader.vue @@ -1,9 +1,10 @@