Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): improve home page layout — cap AgentOverview at 1/3 height, fill remaining space with activity panels

Generbb3575f99b56
diff --git a/src/web/src/app/(app)/w/[slug]/home/_components/agent-overview.tsx b/src/web/src/app/(app)/w/[slug]/home/_components/agent-overview.tsx
index e37a22a7c..2055b9efb 100644
--- a/src/web/src/app/(app)/w/[slug]/home/_components/agent-overview.tsx
+++ b/src/web/src/app/(app)/w/[slug]/home/_components/agent-overview.tsx
@@ -23,7 +23,7 @@ export function AgentOverview({ agents, runtimes, activeTaskCounts, overview }:
if (agents.length === 0) return null;
return (
- <Card>
+ <Card className="flex flex-col lg:max-h-[33%]">
<CardHeader>
<CardTitle>Agents</CardTitle>
<CardAction>
@@ -36,7 +36,7 @@ export function AgentOverview({ agents, runtimes, activeTaskCounts, overview }:
</button>
</CardAction>
</CardHeader>
- <CardContent className="p-0">
+ <CardContent className="p-0 flex-1 min-h-0 overflow-y-auto">
<div className="divide-y divide-border/50">
{agents.map((agent) => {
const rt = runtimes.find((r) => r.id === agent.runtime_id);
diff --git a/src/web/src/app/(app)/w/[slug]/home/page.tsx b/src/web/src/app/(app)/w/[slug]/home/page.tsx
index 6019beb91..c427deb58 100644
--- a/src/web/src/app/(app)/w/[slug]/home/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/home/page.tsx
@@ -102,21 +102,21 @@ export default function HomePage() {
}
return (
- <div className="flex-1 min-h-0 overflow-y-auto">
- <div className="flex min-h-full lg:h-full lg:min-h-[600px] flex-col justify-between p-4 lg:p-6">
- <div className="flex-1 min-h-0 flex flex-col gap-4">
- <AgentOverview
- agents={agents}
- runtimes={runtimes}
- activeTaskCounts={activeTaskCounts}
- overview={overview}
- />
- <div className="grid gap-4 lg:grid-cols-2 lg:flex-1 lg:[&>*]:h-full">
- <RecentActivity overview={overview} agents={agents} />
- <CalendarOverview overview={overview} agents={agents} />
- </div>
+ <div className="flex-1 min-h-0 overflow-y-auto lg:overflow-hidden">
+ <div className="flex min-h-full flex-col gap-4 p-4 lg:h-full lg:min-h-[600px] lg:p-6">
+ <AgentOverview
+ agents={agents}
+ runtimes={runtimes}
+ activeTaskCounts={activeTaskCounts}
+ overview={overview}
+ />
+ <div className="grid gap-4 lg:grid-cols-2 lg:flex-1 lg:min-h-0 lg:auto-rows-fr">
+ <RecentActivity overview={overview} agents={agents} />
+ <CalendarOverview overview={overview} agents={agents} />
+ </div>
+ <div className="shrink-0">
+ <DailyQuote />
</div>
- <DailyQuote />
</div>
</div>
);