Skip to content

Commit 32b7ed0

Browse files
committed
fix: use justify-center instead of spacers - consistent gap regardless of height
1 parent 5cc080e commit 32b7ed0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/browser/components/ProjectPage.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ export const ProjectPage: React.FC<ProjectPageProps> = ({
6363
<ProviderOptionsProvider>
6464
<ThinkingProvider projectPath={projectPath}>
6565
<ConnectionStatusIndicator />
66-
{/* Scrollable flex column: chat centered, archived at bottom with min gap */}
67-
<div className="flex h-full flex-1 flex-col items-center gap-6 overflow-y-auto p-4">
68-
{/* Spacer pushes chat toward center */}
69-
<div className="min-h-0 flex-1" />
66+
{/* Scrollable content area */}
67+
<div className="flex h-full flex-1 flex-col items-center justify-center gap-6 overflow-y-auto p-4">
7068
{/* Chat input card */}
7169
<ChatInput
7270
variant="creation"
@@ -76,11 +74,9 @@ export const ProjectPage: React.FC<ProjectPageProps> = ({
7674
onReady={handleChatReady}
7775
onWorkspaceCreated={onWorkspaceCreated}
7876
/>
79-
{/* Spacer between chat and archived - shrinks but gap-6 ensures min spacing */}
80-
<div className="min-h-0 flex-1" />
81-
{/* Archived workspaces at bottom */}
77+
{/* Archived workspaces below chat */}
8278
{archivedWorkspaces.length > 0 && (
83-
<div className="w-full max-w-3xl shrink-0">
79+
<div className="w-full max-w-3xl">
8480
<ArchivedWorkspaces
8581
projectPath={projectPath}
8682
projectName={projectName}

0 commit comments

Comments
 (0)