diff --git a/calliope-web/src/lib/components/desk/ResultRail.svelte b/calliope-web/src/lib/components/desk/ResultRail.svelte index 72150c08..484969a8 100644 --- a/calliope-web/src/lib/components/desk/ResultRail.svelte +++ b/calliope-web/src/lib/components/desk/ResultRail.svelte @@ -136,6 +136,9 @@ margin: 4px 0; } @media (max-height: 650px) { + .rail-items { + display: none; + } .thumb, img { height: 32px; diff --git a/calliope-web/src/lib/components/desk/StudioDesk.svelte b/calliope-web/src/lib/components/desk/StudioDesk.svelte index 428c4ca2..a031fb7d 100644 --- a/calliope-web/src/lib/components/desk/StudioDesk.svelte +++ b/calliope-web/src/lib/components/desk/StudioDesk.svelte @@ -947,10 +947,25 @@ > {#if currentMeta?.usage}

- {usageLabel(currentMeta.usage)} · -

{/if} - {#if currentWorkflow?.description}

- {currentWorkflow.description} + {usageLabel(currentMeta.usage)} · s.mediaKind), + ...ds.lists.map((l) => + l.kind === 'video_list' + ? 'video' + : l.kind === 'audio_list' + ? 'audio' + : 'image', + ), + ]), + ], + out: [kind], + } + : currentMeta.media_io} + />

{/if} {#if !deskMetas.length && !$metaQuery.isLoading}

还没有可用工具。

2 · 准备这次创作

+ {#if hasSlots}
+ +
{/if} {#if ds.prompt} @@ -137,18 +149,6 @@ > {#if promptErr}{/if} {:else}

这个工具不需要填写画面描述,请准备下面的素材。

{/if} - {#if hasSlots}
- -
{/if} {#if commonInputs.length}

画面与生成设置

@@ -277,7 +277,7 @@ outline-offset: 1px; } .slots { - margin-top: 16px; + margin-bottom: 16px; } .slots :global(.tray) { padding: 0; diff --git a/calliope-web/src/lib/components/generate/Inspector.svelte b/calliope-web/src/lib/components/generate/Inspector.svelte index 7dcec5f1..5bfd2509 100644 --- a/calliope-web/src/lib/components/generate/Inspector.svelte +++ b/calliope-web/src/lib/components/generate/Inspector.svelte @@ -142,19 +142,6 @@ else videoEl.pause(); } - function reduced(): boolean { - return ( - document.documentElement.dataset.reduce === '1' || - window.matchMedia('(prefers-reduced-motion: reduce)').matches - ); - } - - /** 150ms 交叉淡变 on pointer picks; keyboard switches stay instant. */ - function xfade(_node: Element) { - const ms = crossfade ? (reduced() ? 120 : 150) : 0; - return { duration: ms, css: (t: number) => `opacity: ${t}` }; - } - const mediaKey = $derived(`${job?.id ?? 'none'}:${output ?? st?.tone ?? ''}`); let frameBusy = $state(false); diff --git a/docs/HEL-665-creative-journey.md b/docs/HEL-665-creative-journey.md index c667fda4..817c836d 100644 --- a/docs/HEL-665-creative-journey.md +++ b/docs/HEL-665-creative-journey.md @@ -7,8 +7,8 @@ - 创作区按「选择工具 → 准备素材 → 开始生成 → 查看结果」组织。 - 工具选择在工作区内完成,先查看真实输入要求,再确认使用。取消选择保留输入。 - 左侧表单独立滚动,提交按钮与阻止提交的原因固定可见。常用参数直接展示;高级参数折叠,服务配置另设入口。 -- 右侧完整展示结果,历史改为紧凑记录条;可打开详细任务记录。当前排队/运行任务可显式取消。 -- 视频默认暂停,播放/暂停及全屏按钮显式显示,取消页面级空格/方向键/删除键副作用;其他页面共用的媒体放大窗口也取消自动播放。 +- 右侧完整展示结果,历史改为紧凑记录条;矮窗口保留明确的记录入口,详细记录在可滚动窗口内查看,给结果操作留足空间。当前排队/运行任务可显式取消。 +- 视频默认暂停,结果切换时只有一个播放器;播放/暂停及全屏按钮显式显示,取消页面级空格/方向键/删除键副作用;其他页面共用的媒体放大窗口也取消自动播放。 - 媒体网格使用 `minmax(0, 1fr)`,防止视频的固有尺寸撑大网格行、被外框裁掉播放控件。 - 本标签页草稿按类型、项目来源和入口隔离,恢复工具、描述、参数与已上传文件引用。来源提示改变时使用新来源。入口变化重建编辑器,避免串项目;详情先返回时,迟到的目录不会覆盖恢复选择。 - 共用壳层去掉刚性最小宽度,创作区按实际窗口剩余高度分配空间。 diff --git a/e2e/refract.mjs b/e2e/refract.mjs index 86901c01..c9af8e6a 100644 --- a/e2e/refract.mjs +++ b/e2e/refract.mjs @@ -470,6 +470,16 @@ try { ); }); ok(`entire video, playback and generate visible at ${width}x${height}`, visible); + ok( + `result operations remain fully visible at ${width}x${height}`, + await page.evaluate(() => { + const body = document.querySelector('.inspector.main .body').getBoundingClientRect(); + return [...document.querySelectorAll('.inspector.main .actions .a-btn')].every((e) => { + const r = e.getBoundingClientRect(); + return r.bottom <= body.bottom + 1 && r.bottom <= innerHeight; + }); + }), + ); await page.screenshot({ path: SHOTS + `/workspace-${width}x${height}.png` }); await page.locator('.model-selector').click(); await page.locator('.tool-picker').waitFor();