HEL-665: rebuild ComfyUI creative journey with visible controls and isolated drafts

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-14 00:04:19 +08:00
co-authored by multica-agent
parent ac1c0f98a6
commit 07f6475b1a
11 changed files with 1195 additions and 826 deletions
@@ -17,6 +17,7 @@
/** Desktop studio shell: six named sections, project scope, search,
* real queue and connection status. Individual tools keep their routes. */
interface Props {
workspace?: boolean;
active: NavId;
title: string;
subtitle?: string;
@@ -25,7 +26,7 @@
children?: import('svelte').Snippet;
}
let { title, actions, children }: Props = $props();
let { title, actions, children, workspace = false }: Props = $props();
let paletteOpen = $state(false);
@@ -251,7 +252,7 @@
><Icon name="search" size={16} /><span>寻找项目与灵感</span><kbd>Ctrl K</kbd></button
><QueueTray jobs={genJobs} />
</header>
<div class="body">{@render children?.()}</div>
<div class="body" class:bounded={workspace}>{@render children?.()}</div>
</div>
</div>
<CommandPalette bind:open={paletteOpen} />
@@ -261,9 +262,9 @@
position: fixed;
inset: 0;
display: grid;
grid-template-columns: 214px minmax(850px, 1fr);
grid-template-columns: 214px minmax(0, 1fr);
background: var(--bg);
min-width: 1064px;
min-width: 0;
color: var(--text);
}
.sidebar {
@@ -495,6 +496,9 @@
overflow: auto;
overscroll-behavior: contain;
}
.body.bounded {
overflow: hidden;
}
.focus {
grid-template-columns: 1fr;
}
@@ -516,8 +520,7 @@
}
@media (max-width: 1250px) {
.refract-shell {
grid-template-columns: 182px minmax(810px, 1fr);
min-width: 992px;
grid-template-columns: 182px minmax(0, 1fr);
}
.sidebar {
padding: 24px 15px 16px;