feat: 收口移动端侧栏与创作拆解页布局
This commit is contained in:
1 parent
c483b1912e
commit
542ec296c7
12 files changed
+250
-49
No files matched your search
@@ -137,6 +137,7 @@ function exportResult() {
|
||||
<template>
|
||||
<WorkspacePage split compact class="breakdown-workspace-page">
|
||||
<template #header>
|
||||
<!-- 以下是拆解状态与设置 -->
|
||||
<div class="workspace-toolbar">
|
||||
<h2 class="font-semibold">剧本拆解</h2>
|
||||
<div v-if="snapshot" class="toolbar-summary">
|
||||
@@ -144,7 +145,10 @@ function exportResult() {
|
||||
>抽取 {{ summary.completed }} / {{ summary.total }} · 失败 {{ summary.failed }}</span
|
||||
>
|
||||
<span>主体 {{ subjects.length }} · 分镜剧集 {{ shots.length }} / {{ plans.length }}</span>
|
||||
</div>
|
||||
<div v-if="snapshot || project?.episodes.length" class="toolbar-actions">
|
||||
<StatusBadge
|
||||
v-if="snapshot"
|
||||
:status="execution?.status || 'unknown'"
|
||||
:label="
|
||||
execution?.status === 'completed'
|
||||
@@ -154,9 +158,12 @@ function exportResult() {
|
||||
: '执行状态待确认'
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="project?.episodes.length" class="toolbar-actions">
|
||||
<WorkspaceTools v-model:open="toolsOpen" title="拆解设置与恢复" label="拆解设置与恢复">
|
||||
<WorkspaceTools
|
||||
v-if="project?.episodes.length"
|
||||
v-model:open="toolsOpen"
|
||||
title="拆解设置与恢复"
|
||||
label="拆解设置与恢复"
|
||||
>
|
||||
<section class="panel breakdown-settings-panel p-5 lg:p-6">
|
||||
<div class="mb-5 flex flex-wrap items-start justify-between gap-3">
|
||||
<div>
|
||||
@@ -491,6 +498,7 @@ function exportResult() {
|
||||
:project-id="project?.id"
|
||||
:checkpoints="checkpoints"
|
||||
workflow="breakdown"
|
||||
@close="showHistory = false"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
@@ -583,9 +591,69 @@ function exportResult() {
|
||||
.breakdown-results-section > .content-with-history.history-hidden {
|
||||
@apply grid-cols-[minmax(0,_1fr)] grid-rows-[minmax(0,_1fr)];
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.breakdown-results-section > .content-with-history {
|
||||
@apply grid-rows-[minmax(0,_1fr)_min(25%,_130px)];
|
||||
@media (max-width: 800px) {
|
||||
.breakdown-workspace-page .workspace-heading {
|
||||
@apply py-2 px-3;
|
||||
}
|
||||
.breakdown-workspace-page .workspace-toolbar {
|
||||
@apply min-h-0 flex-nowrap gap-2;
|
||||
}
|
||||
.breakdown-workspace-page .workspace-toolbar h2 {
|
||||
@apply hidden;
|
||||
}
|
||||
.breakdown-workspace-page .toolbar-summary {
|
||||
@apply min-w-0 flex-1 flex-nowrap overflow-x-auto overflow-y-hidden overscroll-x-contain;
|
||||
scrollbar-width: none;
|
||||
mask-image: linear-gradient(to right, #000 calc(100% - 12px), transparent);
|
||||
}
|
||||
.breakdown-workspace-page .toolbar-summary::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.breakdown-workspace-page .toolbar-summary > * {
|
||||
@apply shrink-0;
|
||||
}
|
||||
.breakdown-workspace-page .toolbar-actions {
|
||||
@apply ml-0 shrink-0;
|
||||
}
|
||||
.breakdown-workspace-page .toolbar-actions > * {
|
||||
@apply shrink-0;
|
||||
}
|
||||
.breakdown-workspace-page .toolbar-actions .n-tag {
|
||||
@apply hidden;
|
||||
}
|
||||
.breakdown-workspace-page .workspace-tools-label {
|
||||
@apply hidden;
|
||||
}
|
||||
.breakdown-workspace-page .workspace-tools-trigger {
|
||||
@apply h-8 w-8 p-0;
|
||||
min-width: 32px;
|
||||
}
|
||||
.breakdown-workspace-page .workspace-tools-trigger .n-button__icon {
|
||||
@apply m-0;
|
||||
}
|
||||
.breakdown-results-section .tabs-toolbar {
|
||||
container-type: normal;
|
||||
}
|
||||
.breakdown-results-section .workspace-tabs > .n-tabs-nav {
|
||||
@apply flex-nowrap;
|
||||
}
|
||||
.breakdown-results-section .workspace-tabs .n-tabs-nav-scroll-wrapper {
|
||||
@apply min-w-0 flex-1;
|
||||
flex-basis: auto;
|
||||
}
|
||||
.breakdown-results-section .workspace-tabs .n-tabs-nav__suffix {
|
||||
@apply w-auto pl-2;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -24,7 +24,8 @@ const filtered = computed(() =>
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="p-5 lg:p-7">
|
||||
<div class="subject-list">
|
||||
<!-- 以下是主体搜索 -->
|
||||
<div class="subject-list-toolbar">
|
||||
<NInput
|
||||
class="subject-list-search"
|
||||
@@ -139,6 +140,14 @@ const filtered = computed(() =>
|
||||
.subject-details[open] summary svg {
|
||||
@apply rotate-180;
|
||||
}
|
||||
.subject-list {
|
||||
@apply p-5;
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.subject-list {
|
||||
@apply p-7;
|
||||
}
|
||||
}
|
||||
.subject-list-toolbar {
|
||||
@apply flex flex-wrap items-center justify-start gap-y-2.5 gap-x-3 mb-5;
|
||||
}
|
||||
@@ -148,4 +157,15 @@ const filtered = computed(() =>
|
||||
.subject-list-count {
|
||||
@apply shrink-0 text-muted text-xs whitespace-nowrap;
|
||||
}
|
||||
@media (max-width: 800px) {
|
||||
.subject-list {
|
||||
@apply p-3;
|
||||
}
|
||||
.subject-list-toolbar {
|
||||
@apply flex-nowrap gap-2 mb-3;
|
||||
}
|
||||
.subject-list-search.n-input {
|
||||
@apply flex-1 max-w-none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user