This commit is contained in:
marko-kraemer 2025-10-09 16:53:06 +02:00
parent 27c211f1be
commit 169903f4b7
1 changed files with 17 additions and 17 deletions

View File

@ -384,11 +384,11 @@ export function DashboardContent() {
)} )}
{/* Centered content area */} {/* Centered content area */}
<div className="flex-1 flex items-center justify-center"> <div className="flex-1 flex items-start justify-center pt-[20vh]">
{/* Super Worker View - Suna only */} {/* Super Worker View - Suna only */}
{viewMode === 'super-worker' && ( {viewMode === 'super-worker' && (
<div className="w-full animate-in fade-in-0 duration-300"> <div className="w-full animate-in fade-in-0 duration-300">
{/* Title and chat input */} {/* Title and chat input - Fixed position */}
<div className="px-4 py-8"> <div className="px-4 py-8">
<div className="w-full max-w-3xl mx-auto flex flex-col items-center space-y-4 md:space-y-6"> <div className="w-full max-w-3xl mx-auto flex flex-col items-center space-y-4 md:space-y-6">
<div className="flex flex-col items-center text-center w-full"> <div className="flex flex-col items-center text-center w-full">
@ -411,7 +411,7 @@ export function DashboardContent() {
hideAttachments={false} hideAttachments={false}
selectedAgentId={selectedAgentId} selectedAgentId={selectedAgentId}
onAgentSelect={setSelectedAgent} onAgentSelect={setSelectedAgent}
enableAdvancedConfig={true} enableAdvancedConfig={false}
onConfigureAgent={(agentId) => { onConfigureAgent={(agentId) => {
setConfigAgentId(agentId); setConfigAgentId(agentId);
setShowConfigDialog(true); setShowConfigDialog(true);
@ -420,23 +420,23 @@ export function DashboardContent() {
onModeDeselect={() => setSelectedMode(null)} onModeDeselect={() => setSelectedMode(null)}
animatePlaceholder={true} animatePlaceholder={true}
/> />
{/* Modes Panel */}
{(isStagingMode() || isLocalMode()) && isSunaAgent && (
<div className="px-4 pt-8">
<div className="max-w-3xl mx-auto">
<SunaModesPanel
selectedMode={selectedMode}
onModeSelect={setSelectedMode}
onSelectPrompt={setInputValue}
isMobile={isMobile}
/>
</div>
</div>
)}
</div> </div>
</div> </div>
</div> </div>
{/* Modes Panel - Below chat input, doesn't affect its position */}
{(isStagingMode() || isLocalMode()) && isSunaAgent && (
<div className="px-4 pb-8">
<div className="max-w-3xl mx-auto">
<SunaModesPanel
selectedMode={selectedMode}
onModeSelect={setSelectedMode}
onSelectPrompt={setInputValue}
isMobile={isMobile}
/>
</div>
</div>
)}
</div> </div>
)} )}