fix: keep agent workspace scrolling internal
This commit is contained in:
parent
1f078d5b37
commit
0abded401b
@ -537,7 +537,7 @@ export function AgentGenerationWorkspaceDarkV2({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-black">
|
<div className="flex h-dvh flex-col overflow-hidden bg-black">
|
||||||
<AgentCanvasTopNavDark
|
<AgentCanvasTopNavDark
|
||||||
siteName={siteName}
|
siteName={siteName}
|
||||||
siteLogo={siteLogo}
|
siteLogo={siteLogo}
|
||||||
@ -548,8 +548,8 @@ export function AgentGenerationWorkspaceDarkV2({
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Main Content */}
|
{/* Main Content */}
|
||||||
<main className="pt-16">
|
<main className="flex-1 overflow-y-auto overscroll-contain pt-16 lg:overflow-hidden">
|
||||||
<div className="mx-auto flex min-h-[calc(100vh-64px)] max-w-[1480px] flex-col px-6 py-6 lg:px-8 xl:px-10">
|
<div className="mx-auto flex min-h-full max-w-[1480px] flex-col px-6 py-6 lg:h-full lg:px-8 xl:px-10">
|
||||||
{/* 步骤指示器 */}
|
{/* 步骤指示器 */}
|
||||||
<motion.div
|
<motion.div
|
||||||
className="mb-6 flex items-center justify-center gap-2 text-sm"
|
className="mb-6 flex items-center justify-center gap-2 text-sm"
|
||||||
@ -561,9 +561,9 @@ export function AgentGenerationWorkspaceDarkV2({
|
|||||||
<span className="text-emerald-400 font-medium">第二步:生图模式</span>
|
<span className="text-emerald-400 font-medium">第二步:生图模式</span>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
<div className="grid min-h-0 flex-1 grid-cols-1 gap-6 lg:h-[calc(100vh-136px)] lg:grid-cols-[400px_minmax(0,1fr)]">
|
<div className="grid min-h-0 flex-1 grid-cols-1 gap-6 lg:grid-cols-[400px_minmax(0,1fr)]">
|
||||||
{/* Left Panel - Controls */}
|
{/* Left Panel - Controls */}
|
||||||
<div className="min-h-0 space-y-4 lg:overflow-y-auto lg:pr-2">
|
<div className="min-h-0 space-y-4 lg:h-full lg:overflow-y-auto lg:pr-2">
|
||||||
{/* 嵌入的智能体选择面板 */}
|
{/* 嵌入的智能体选择面板 */}
|
||||||
{!selectedAgentPreset && presetPanel && (
|
{!selectedAgentPreset && presetPanel && (
|
||||||
<motion.div
|
<motion.div
|
||||||
|
|||||||
@ -233,7 +233,7 @@ export function AgentWorkflowPanelDarkV2({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-black">
|
<div className="flex h-dvh flex-col overflow-hidden bg-black">
|
||||||
<AgentCanvasTopNavDark
|
<AgentCanvasTopNavDark
|
||||||
siteName={siteName}
|
siteName={siteName}
|
||||||
siteLogo={siteLogo}
|
siteLogo={siteLogo}
|
||||||
@ -263,23 +263,27 @@ export function AgentWorkflowPanelDarkV2({
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Hero Section */}
|
<div className="flex-1 overflow-y-auto overscroll-contain pt-16">
|
||||||
<section className="relative pt-16">
|
{/* Hero Section */}
|
||||||
<div className="mx-auto max-w-[1480px] px-6 py-8 lg:px-8 xl:px-10">
|
<section className="relative">
|
||||||
<AgentWorkflowShowcaseBanner
|
<div className="mx-auto max-w-[1480px] px-6 py-8 lg:px-8 xl:px-10">
|
||||||
config={showcaseConfig}
|
<AgentWorkflowShowcaseBanner
|
||||||
onActionClick={() => {
|
config={showcaseConfig}
|
||||||
const target = document.getElementById("agent-workflow-content");
|
onActionClick={() => {
|
||||||
if (!target) return;
|
const target = document.getElementById("agent-workflow-content");
|
||||||
target.scrollIntoView({ behavior: "smooth", block: "start" });
|
if (!target) return;
|
||||||
}}
|
target.scrollIntoView({ behavior: "smooth", block: "start" });
|
||||||
/>
|
}}
|
||||||
</div>
|
/>
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
{/* Main Content */}
|
{/* Main Content */}
|
||||||
<main className="pb-40">
|
<main className="pb-40">
|
||||||
<div id="agent-workflow-content" className="mx-auto max-w-[1480px] px-6 lg:px-8 xl:px-10">
|
<div
|
||||||
|
id="agent-workflow-content"
|
||||||
|
className="mx-auto max-w-[1480px] px-6 lg:px-8 xl:px-10"
|
||||||
|
>
|
||||||
<div className="space-y-8">
|
<div className="space-y-8">
|
||||||
{/* 基础配置 */}
|
{/* 基础配置 */}
|
||||||
<motion.section
|
<motion.section
|
||||||
@ -402,8 +406,20 @@ export function AgentWorkflowPanelDarkV2({
|
|||||||
/>
|
/>
|
||||||
</motion.section>
|
</motion.section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
{/* 页脚 */}
|
||||||
|
<footer className="border-t border-white/5 pb-28 pt-6">
|
||||||
|
<div className="mx-auto max-w-[1480px] px-6 lg:px-8 xl:px-10">
|
||||||
|
<div className="flex items-center justify-center gap-6 text-sm text-white/30">
|
||||||
|
<a href="#" className="hover:text-white/60 transition-colors">使用协议</a>
|
||||||
|
<a href="#" className="hover:text-white/60 transition-colors">隐私条款</a>
|
||||||
|
<span>© 2024 AI创作平台</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
{onNextStep ? (
|
{onNextStep ? (
|
||||||
<motion.div
|
<motion.div
|
||||||
@ -465,17 +481,6 @@ export function AgentWorkflowPanelDarkV2({
|
|||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{/* 页脚 */}
|
|
||||||
<footer className="border-t border-white/5 pb-28 pt-6">
|
|
||||||
<div className="mx-auto max-w-[1480px] px-6 lg:px-8 xl:px-10">
|
|
||||||
<div className="flex items-center justify-center gap-6 text-sm text-white/30">
|
|
||||||
<a href="#" className="hover:text-white/60 transition-colors">使用协议</a>
|
|
||||||
<a href="#" className="hover:text-white/60 transition-colors">隐私条款</a>
|
|
||||||
<span>© 2024 AI创作平台</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user