Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): constrain home page to one screen at lg with internal scroll

Gener5e422f906ae5
diff --git a/src/web/src/app/(app)/w/[slug]/home/_components/calendar-overview.tsx b/src/web/src/app/(app)/w/[slug]/home/_components/calendar-overview.tsx
index 7c631b227..690443a08 100644
--- a/src/web/src/app/(app)/w/[slug]/home/_components/calendar-overview.tsx
+++ b/src/web/src/app/(app)/w/[slug]/home/_components/calendar-overview.tsx
@@ -44,7 +44,7 @@ export function CalendarOverview({ overview, agents }: CalendarOverviewProps) {
.slice(0, 5);
return (
- <Card>
+ <Card className="flex flex-col">
<CardHeader>
<CardTitle>Calendar</CardTitle>
<CardAction>
@@ -57,7 +57,7 @@ export function CalendarOverview({ overview, agents }: CalendarOverviewProps) {
</button>
</CardAction>
</CardHeader>
- <CardContent className="space-y-3">
+ <CardContent className="space-y-3 flex-1 min-h-0 overflow-y-auto">
<div className="grid grid-cols-3 gap-3">
<div className="rounded-lg border border-border/50 px-3 py-2 text-center">
<p className="text-xl font-semibold">{todayEvents.length}</p>
diff --git a/src/web/src/app/(app)/w/[slug]/home/_components/recent-activity.tsx b/src/web/src/app/(app)/w/[slug]/home/_components/recent-activity.tsx
index 9c817b110..ea9c2a4c0 100644
--- a/src/web/src/app/(app)/w/[slug]/home/_components/recent-activity.tsx
+++ b/src/web/src/app/(app)/w/[slug]/home/_components/recent-activity.tsx
@@ -51,11 +51,11 @@ export function RecentActivity({ overview, agents }: RecentActivityProps) {
}
return (
- <Card>
+ <Card className="flex flex-col">
<CardHeader>
<CardTitle>Recent Activity</CardTitle>
</CardHeader>
- <CardContent className="p-0">
+ <CardContent className="p-0 flex-1 min-h-0 overflow-y-auto">
<div className="divide-y divide-border/50">
{recent_tasks.map((task) => {
const config = TYPE_CONFIG[task.type] ?? TYPE_CONFIG.user_dm_message;
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 5419a9262..6019beb91 100644
--- a/src/web/src/app/(app)/w/[slug]/home/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/home/page.tsx
@@ -102,9 +102,9 @@ export default function HomePage() {
}
return (
- <div className="flex-1 overflow-y-auto">
- <div className="flex min-h-full flex-col justify-between p-4 lg:p-6">
- <div className="flex-1 flex flex-col gap-4">
+ <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}